47 vector< vector<Peak> > peaks(5);
50 peak.retentionTime = 0;
51 peak.mz = 1000; peaks[0].push_back(peak);
52 peak.mz = 1002; peaks[0].push_back(peak);
54 peak.retentionTime = 1;
55 peak.mz = 1000.01; peaks[1].push_back(peak);
56 peak.mz = 1001; peaks[1].push_back(peak);
57 peak.mz = 1002.01; peaks[1].push_back(peak);
59 peak.retentionTime = 2;
60 peak.mz = 1001.01; peaks[2].push_back(peak);
61 peak.mz = 1002-.01; peaks[2].push_back(peak);
63 peak.retentionTime = 3;
64 peak.mz = 1000; peaks[3].push_back(peak);
65 peak.mz = 1001-.01; peaks[3].push_back(peak);
66 peak.mz = 1002.02; peaks[3].push_back(peak);
68 peak.retentionTime = 4;
69 peak.mz = 1000.01; peaks[4].push_back(peak);
70 peak.mz = 1002-.02; peaks[4].push_back(peak);
92 PeakelField::const_iterator it = field.begin();
117 int main(
int argc,
char* argv[])
123 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
MZRTField is a std::set of boost::shared_ptrs, stored as a binary tree ordered by LessThan_MZRT...
#define unit_assert_equal(x, y, epsilon)
represents some generic metadata about a peak detected in a signal
vector< vector< Peak > > createToyPeaks()
virtual void sowPeaks(PeakelField &peakelField, const std::vector< Peak > &peaks) const
simple PeakelGrower implementation, based on proximity of Peaks
#define TEST_PROLOG(argc, argv)
int main(int argc, char *argv[])