#include <iostream>
#include <cmath>
int main() {
img = 100000.0;
{
cout <<
"Mean: " << stats.getValue(
math::MEAN) << endl;
cout <<
"Error in mean: " << stats.getError(
math::MEAN) <<
" (expect NaN)" << endl;
cout <<
"Standard Deviation: " << stats.getValue(
math::STDEV) << endl << endl;
}
{
std::pair<double, double> mean = stats.getResult(
math::MEAN);
cout << "Mean: " << mean.first << " error in mean: " << mean.second << endl << endl;
}
{
try {
} catch (lsst::pex::exceptions::InvalidParameterError &e) {
cout << "You didn't ask for the mean, so we caught an exception: " << e.what() << endl;
}
}
return 0;
}