Exemple #1
0
void test_sample_max(const sample &sam, double max)
{
    double epsilon = 0.0001;
    assert(abs(sam.maximum() - max) < epsilon);
    cout << " Testing maximum() of: " << sam << " is " << max << "(" << sam.maximum() << ")" << endl;
}