Ignore:
Timestamp:
Mar 6, 2008, 5:00:44 PM (14 years ago)
Author:
Peter
Message:

refs #223 change fabs to std::abs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/statistics_test.cc

    r1120 r1210  
    5252  double tolerance=1e-10;
    5353  double skewness_gsl=statistics::skewness(gsl_vec);
    54   if (fabs(skewness_gsl)>tolerance)
     54  if (std::abs(skewness_gsl)>tolerance)
    5555    return -1;
    5656  double kurtosis_gsl=statistics::kurtosis(gsl_vec);
    57   if (fabs(kurtosis_gsl+1.5616363636363637113)>tolerance)
     57  if (std::abs(kurtosis_gsl+1.5616363636363637113)>tolerance)
    5858    return -1; 
    5959  return 0;
Note: See TracChangeset for help on using the changeset viewer.