12 #include "oops/util/Logger.h"
14 #include "eckit/testing/Test.h"
24 oops::Log::info() <<
"soar(0.0)=" << t << std::endl;
25 EXPECT(std::abs(t-1) < 2*DBL_EPSILON);
28 oops::Log::info() <<
"soar(1.0)=" << t << std::endl;
29 EXPECT(std::abs(t-0.735758882342885) < 1e-6);
32 oops::Log::info() <<
"soar(2.0)=" << t << std::endl;
33 EXPECT(std::abs(t-0.406005849709838) < 1e-6);
36 oops::Log::info() <<
"soar(4.0)=" << t << std::endl;
37 EXPECT(std::abs(t-0.091578194443671) < 1e-6);
40 oops::Log::info() <<
"soar(8.0)=" << t << std::endl;
41 EXPECT(std::abs(t-0.003019163651123) < 1e-6);
48 int main(
int argc,
char **argv)
50 return eckit::testing::run_tests ( argc, argv );
double soar(const double &distnorm)
computes second order autoregressive function
int main(int argc, char **argv)