ProteoWizard
|
#include "FrequencyData.hpp"
#include "FrequencyDataTestData.hpp"
#include "pwiz/data/misc/CalibrationParameters.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Filesystem.hpp"
#include "pwiz/utility/misc/Std.hpp"
#include <boost/filesystem/operations.hpp>
Go to the source code of this file.
Functions | |
void | diff (const string &filename1, const string &filename2) |
void | test () |
void | testFind () |
void | testAddition () |
void | testNoiseFloor () |
void | cleanTests () |
void | testNoiseFloorVarianceCalculation () |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ |
string | filename1 = "FrequencyDataTest.output1.txt" |
void diff | ( | const string & | filename1, |
const string & | filename2 | ||
) |
Definition at line 40 of file FrequencyDataTest.cpp.
References os_, and unit_assert.
Referenced by pwiz::data::Diff< object_type, config_type, object_result_type >::Diff(), pwiz::data::Diff< object_type, config_type, object_result_type >::operator()(), pwiz::data::operator<<(), test(), testAmbiguousResidue(), testAnalysisData(), testAnalysisSoftware(), testBinaryDataArray(), testChromatogram(), testChromatogramList(), testComponent(), testComponentList(), testCompound(), testConfiguration(), testContact(), testContactRole(), testCV(), testCVParam(), testDatabaseTranslation(), testDataCollection(), testDataProcessing(), testEnzyme(), testEnzymes(), testEvidence(), testFileContent(), testFileDescription(), testFilter(), testFragmentArray(), testIdentData(), testIdentifiable(), testInputs(), testInstrument(), testInstrumentConfiguration(), testIonType(), testMassTable(), testMaxPrecisionDiff(), testMeasure(), testModification(), testMSData(), testObject(), testObject_ChromatogramList(), testObject_SpectrumList(), testObjectWithMSData(), testParamContainer(), testParamGroup(), testPeptide(), testPeptideEvidence(), testPeptideHypothesis(), testPerson(), testPrecursor(), testPrediction(), testProcessingMethod(), testProduct(), testProtein(), testProteinAmbiguityGroup(), testProteinDetectionHypothesis(), testProteinDetectionList(), testProteinDetectionProtocol(), testProteinList(), testProteomeData(), testQR(), testRectangularQR(), testResidue(), testRetentionTime(), testRun(), testSample(), testScan(), testScanList(), testScanSettings(), testSearchDatabase(), testSearchModification(), testSerialize(), testSerializeReally(), testSnapModifications(), testSoftware(), testSource(), testSourceFile(), testSpectraData(), testSpectrum(), testSpectrumIdentificationList(), testSpectrumIdentificationProtocol(), testSpectrumList(), testTarget(), testTraData(), testTransition(), testUserParam(), testValidation(), testWriteRead(), testWriteReadBMS1(), testWriteReadBMS2(), testWriteReadCMS1(), testWriteReadCMS2(), testWriteReadMS1(), testWriteReadMS2(), and validateWriteRead().
void test | ( | ) |
Definition at line 53 of file FrequencyDataTest.cpp.
References pwiz::data::CalibrationParameters::A, pwiz::data::FrequencyData::analyze(), pwiz::data::CalibrationParameters::B, pwiz::data::FrequencyData::calibrationParameters(), pwiz::data::FrequencyData::data(), diff(), e(), filename1, pwiz::data::FrequencyData::max(), max(), pwiz::data::FrequencyData::mean(), pwiz::data::FrequencyData::meanSquare(), pwiz::data::FrequencyData::noiseFloor(), pwiz::data::FrequencyData::normalize(), pwiz::data::FrequencyData::observationDuration(), pwiz::data::FrequencyData::observationDurationEstimatedFromData(), os_, pwiz::data::FrequencyData::retentionTime(), pwiz::data::FrequencyData::scale(), pwiz::data::FrequencyData::scanNumber(), pwiz::data::FrequencyData::shift(), pwiz::data::FrequencyData::sumSquares(), Text, pwiz::data::FrequencyData::transform(), unit_assert, unit_assert_equal, pwiz::data::FrequencyData::variance(), and pwiz::data::FrequencyData::write().
void testFind | ( | ) |
Definition at line 151 of file FrequencyDataTest.cpp.
References pwiz::data::FrequencyData::data(), filename1, pwiz::data::FrequencyData::findNearest(), and unit_assert.
void testAddition | ( | ) |
Definition at line 175 of file FrequencyDataTest.cpp.
References pwiz::data::FrequencyData::data(), filename1, pwiz::data::FrequencyData::transform(), and unit_assert.
Referenced by main().
void testNoiseFloor | ( | ) |
Definition at line 195 of file FrequencyDataTest.cpp.
References filename1, pwiz::data::FrequencyData::noiseFloor(), os_, and pwiz::data::FrequencyData::variance().
Referenced by main().
void cleanTests | ( | ) |
Definition at line 203 of file FrequencyDataTest.cpp.
References pwiz::util::expand_pathmask(), and os_.
Referenced by main().
void testNoiseFloorVarianceCalculation | ( | ) |
Definition at line 213 of file FrequencyDataTest.cpp.
References pwiz::data::FrequencyData::analyze(), pwiz::data::FrequencyData::cutoffNoiseFloor(), pwiz::data::FrequencyData::data(), pwiz::data::CalibrationParameters::frequency(), os_, sampleFrequencyData_, sampleMassData_, sampleMassDataSize_, and unit_assert_equal.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 247 of file FrequencyDataTest.cpp.
References cleanTests(), e(), os_, test(), TEST_EPILOG, TEST_FAILED, TEST_PROLOG, testAddition(), testFind(), testNoiseFloor(), and testNoiseFloorVarianceCalculation().
ostream* os_ |
Definition at line 37 of file FrequencyDataTest.cpp.
string filename1 = "FrequencyDataTest.output1.txt" |
Definition at line 50 of file FrequencyDataTest.cpp.
Referenced by test(), testAddition(), testFind(), testNoiseFloor(), and validateWriteRead().