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

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

Definition at line 44 of file TruncatedLorentzianTest.cpp.

References AlphaI, AlphaR, os_, and Tau.

{
if (argc>1 && !strcmp(argv[1],"-v")) os_ = &cout;
if (os_) *os_ << "TruncatedLorentzianTest\n";
if (os_) *os_ << setprecision(8);
ublas::vector<double> p(4);
p(TruncatedLorentzian::F0) = 0;
double T = 1;
/*
p(TruncatedLorentzian::AlphaR) = 5e6;
p(TruncatedLorentzian::AlphaI) = 0;
p(TruncatedLorentzian::Tau) = 1;
p(TruncatedLorentzian::F0) = 159455;
double T = .384;
*/
// L.outputSamples(cout, p);
/*
for (int i=0; i<10; i++)
DerivativeTest::testDerivatives(L, i, p, 1e-5, 1e-3);
*/
if (os_) *os_ << "L(0): " << L(0,p) << endl;
return 0;
}

Variable Documentation

ostream* os_ = 0

Definition at line 41 of file TruncatedLorentzianTest.cpp.