Ignore:
Timestamp:
Nov 1, 2008, 3:34:43 PM (13 years ago)
Author:
Peter
Message:

refs #457 - correcting error margin (not fixing the problem though)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/kolmogorov_smirnov_test.cc

    r1600 r1608  
    7373  double p = ks.p_value(n);
    7474  double p_correct = 2.0/11.0;
    75   double margin = 5*std::sqrt(n*p_correct);
     75  double margin = 5*std::sqrt(n*p_correct)/n;
    7676  if (p>p_correct+margin || p<p_correct-margin) {
    7777    suite.err() << "Error: p-value: " << p << "\n"
Note: See TracChangeset for help on using the changeset viewer.