31 using namespace pwiz::util;
32 using namespace pwiz::calibration;
33 using namespace pwiz::data;
38 vector<double> trueMasses;
39 trueMasses.push_back(100);
40 trueMasses.push_back(200);
41 trueMasses.push_back(300);
45 vector<double> observedFrequencies;
46 for (vector<double>::iterator it=trueMasses.begin(); it!=trueMasses.end(); ++it)
47 observedFrequencies.push_back(p.
frequency(*it));
49 auto_ptr<LeastSquaresCalibrator> calibrator = LeastSquaresCalibrator::create(trueMasses,
75 cerr << e.what() << endl;