ProteoWizard
Functions
CalibratorTrialTest.cpp File Reference
#include "CalibratorTrial.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include <iostream>

Go to the source code of this file.

Functions

void testConfiguration ()
int main ()

Function Documentation

void testConfiguration ( )

Definition at line 35 of file CalibratorTrialTest.cpp.

References pwiz::calibration::CalibratorTrial::Configuration::initialErrorEstimate, pwiz::calibration::CalibratorTrial::Configuration::measurementError, pwiz::calibration::CalibratorTrial::Configuration::measurements, pwiz::calibration::CalibratorTrial::Configuration::parametersInitialEstimate, pwiz::calibration::CalibratorTrial::Configuration::parametersTrue, pwiz::calibration::CalibratorTrial::Configuration::readTrialData(), test(), pwiz::calibration::CalibratorTrial::Configuration::trueMasses, unit_assert, and pwiz::calibration::CalibratorTrial::Configuration::writeTrialData().

Referenced by main(), and test().

{
good.trueMasses.push_back(1.23);
good.trueMasses.push_back(4.56);
good.trueMasses.push_back(5.67);
good.measurements.push_back(Calibrator::Measurement(12.3,1));
good.measurements.push_back(Calibrator::Measurement(45.6,2));
good.measurements.push_back(Calibrator::Measurement(78.9,3));
good.parametersTrue = CalibrationParameters::thermo_FT();
good.measurementError = 2.34567891e-6;
good.initialErrorEstimate = 1.23456789e-6;
const string& filename = "CalibratorTrialTest.temp.txt";
good.writeTrialData(filename);
test.readTrialData(filename);
system(("rm " + filename).c_str());
}
int main ( )

Definition at line 66 of file CalibratorTrialTest.cpp.

References e(), and testConfiguration().

{
try
{
return 0;
}
catch (exception& e)
{
cerr << e.what() << endl;
return 1;
}
}