ProteoWizard
Functions | Variables
TruncatedLorentzianTest.cpp File Reference
#include "TruncatedLorentzian.hpp"
#include "DerivativeTest.hpp"
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#include "pwiz/utility/misc/Std.hpp"
#include <cstring>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Variables

ostream * os_ = 0
 

Function Documentation

§ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 44 of file TruncatedLorentzianTest.cpp.

References AlphaI, AlphaR, os_, and Tau.

45 {
46  if (argc>1 && !strcmp(argv[1],"-v")) os_ = &cout;
47  if (os_) *os_ << "TruncatedLorentzianTest\n";
48 
49  if (os_) *os_ << setprecision(8);
50 
51  ublas::vector<double> p(4);
52 
56  p(TruncatedLorentzian::F0) = 0;
57  double T = 1;
58 
59 /*
60  p(TruncatedLorentzian::AlphaR) = 5e6;
61  p(TruncatedLorentzian::AlphaI) = 0;
62  p(TruncatedLorentzian::Tau) = 1;
63  p(TruncatedLorentzian::F0) = 159455;
64  double T = .384;
65 */
66 
68 
69 // L.outputSamples(cout, p);
70 
71 /*
72  for (int i=0; i<10; i++)
73  DerivativeTest::testDerivatives(L, i, p, 1e-5, 1e-3);
74 */
75 
76  if (os_) *os_ << "L(0): " << L(0,p) << endl;
77 
78  return 0;
79 }
ostream * os_

Variable Documentation

§ os_

ostream* os_ = 0

Definition at line 41 of file TruncatedLorentzianTest.cpp.

Referenced by main().