ProteoWizard
|
#include "PeakDetectorMatchedFilter.hpp"
#include "PeakDetectorMatchedFilterTestData.hpp"
#include "pwiz/utility/misc/unit.hpp"
#include "pwiz/utility/misc/Std.hpp"
Go to the source code of this file.
Functions | |
void | initializeWithTestData (FrequencyData &fd) |
void | testCreation (const IsotopeEnvelopeEstimator &isotopeEnvelopeEstimator) |
void | testFind (FrequencyData &fd, const IsotopeEnvelopeEstimator &isotopeEnvelopeEstimator) |
auto_ptr < IsotopeEnvelopeEstimator > | createIsotopeEnvelopeEstimator () |
void | test () |
int | main (int argc, char *argv[]) |
Variables | |
ostream * | os_ = 0 |
void initializeWithTestData | ( | FrequencyData & | fd | ) |
Definition at line 41 of file PeakDetectorMatchedFilterTest.cpp.
References pwiz::data::FrequencyData::analyze(), pwiz::data::FrequencyData::calibrationParameters(), pwiz::data::FrequencyData::data(), pwiz::data::FrequencyData::observationDuration(), testData_, testDataCalibrationA_, testDataCalibrationB_, testDataObservationDuration_, and testDataSize_.
Referenced by test().
void testCreation | ( | const IsotopeEnvelopeEstimator & | isotopeEnvelopeEstimator | ) |
Definition at line 53 of file PeakDetectorMatchedFilterTest.cpp.
References pwiz::frequency::PeakDetectorMatchedFilter::config(), pwiz::frequency::PeakDetectorMatchedFilter::Config::filterMatchRate, pwiz::frequency::PeakDetectorMatchedFilter::Config::filterSampleRadius, pwiz::frequency::PeakDetectorMatchedFilter::Config::isotopeEnvelopeEstimator, pwiz::frequency::PeakDetectorMatchedFilter::Config::isotopeThresholdFactor, pwiz::frequency::PeakDetectorMatchedFilter::Config::monoisotopicPeakThresholdFactor, os_, pwiz::frequency::PeakDetectorMatchedFilter::Config::peakMaxCorrelationAngle, pwiz::frequency::PeakDetectorMatchedFilter::Config::peakThresholdFactor, and unit_assert.
Referenced by test().
void testFind | ( | FrequencyData & | fd, |
const IsotopeEnvelopeEstimator & | isotopeEnvelopeEstimator | ||
) |
Definition at line 83 of file PeakDetectorMatchedFilterTest.cpp.
References pwiz::frequency::PeakDetectorMatchedFilter::Config::collapseRadius, e(), pwiz::frequency::PeakDetectorMatchedFilter::Config::filterMatchRate, pwiz::frequency::PeakDetectorMatchedFilter::Config::filterSampleRadius, pwiz::frequency::PeakDetectorMatchedFilter::findPeaks(), pwiz::frequency::PeakDetectorMatchedFilter::Config::isotopeEnvelopeEstimator, pwiz::frequency::PeakDetectorMatchedFilter::Config::isotopeMaxChargeState, pwiz::frequency::PeakDetectorMatchedFilter::Config::isotopeMaxNeutronCount, pwiz::frequency::PeakDetectorMatchedFilter::Config::isotopeThresholdFactor, pwiz::frequency::PeakDetectorMatchedFilter::Config::log, pwiz::frequency::PeakDetectorMatchedFilter::Config::logDetailLevel, pwiz::frequency::PeakDetectorMatchedFilter::Config::monoisotopicPeakThresholdFactor, norm(), os_, pwiz::frequency::PeakDetectorMatchedFilter::Config::peakMaxCorrelationAngle, pwiz::frequency::PeakDetectorMatchedFilter::Config::peakThresholdFactor, pwiz::data::peakdata::PeakData::scans, unit_assert, unit_assert_equal, and pwiz::frequency::PeakDetectorMatchedFilter::Config::useMagnitudeFilter.
Referenced by main(), test(), and testThreadSafetyWorker().
auto_ptr<IsotopeEnvelopeEstimator> createIsotopeEnvelopeEstimator | ( | ) |
Definition at line 142 of file PeakDetectorMatchedFilterTest.cpp.
References pwiz::chemistry::IsotopeEnvelopeEstimator::Config::isotopeCalculator.
Referenced by test().
void test | ( | ) |
Definition at line 155 of file PeakDetectorMatchedFilterTest.cpp.
References createIsotopeEnvelopeEstimator(), initializeWithTestData(), os_, testCreation(), and testFind().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 170 of file PeakDetectorMatchedFilterTest.cpp.
References e(), os_, test(), TEST_EPILOG, TEST_FAILED, and TEST_PROLOG.
ostream* os_ = 0 |
Definition at line 38 of file PeakDetectorMatchedFilterTest.cpp.