14 logger(
INFO,
" Checking setting the standard deviation of cg functions");
18 X.setStandardDeviation(1);
22 XY.setStandardDeviation(1);
26 XYZ.setStandardDeviation(1);
27 helpers::check(
XYZ.getFunction().getCutoff(),
sqrt(5./3.),1
e-11,
"Cutoff of 3D Heaviside with unit variance");
32 X.setStandardDeviation(1);
33 helpers::check(
X.getFunction().getCutoff(),
sqrt(10.5),1
e-11,
"Cutoff of 1D Lucy with unit variance");
36 XY.setStandardDeviation(1);
40 XYZ.setStandardDeviation(1);
41 helpers::check(
XYZ.getFunction().getCutoff(),2,1
e-11,
"Cutoff of 3D Lucy with unit variance");
46 X.setStandardDeviation(1);
47 helpers::check(
X.getFunction().getCutoff(),3,1
e-11,
"Cutoff of 1D Gauss with unit variance");
50 XY.setStandardDeviation(1);
51 helpers::check(
XY.getFunction().getCutoff(),3/
sqrt(2),1
e-11,
"Cutoff of 2D Gauss with unit variance");
54 XYZ.setStandardDeviation(1);
71 helpers::check(
XYZ.getFunction().getCutoff(),
sqrt(5./3.)*
sqrt(.6),1
e-11,
"Cutoff of 3D Heaviside with unit radius-equivalent");
77 helpers::check(
X.getFunction().getCutoff(),
sqrt(6)*
sqrt(.2),1
e-11,
"Cutoff of 1D Linear with unit radius-equivalent");
81 helpers::check(
XY.getFunction().getCutoff(),
sqrt(10./3)*
sqrt(.4),1
e-11,
"Cutoff of 2D Linear with unit radius-equivalent");
91 helpers::check(
X.getFunction().getCutoff(),
sqrt(10.5)*
sqrt(.2),1
e-11,
"Cutoff of 1D Lucy with unit radius-equivalent");
99 helpers::check(
XYZ.getFunction().getCutoff(),2*
sqrt(.6),1
e-11,
"Cutoff of 3D Lucy with unit radius-equivalent");
105 helpers::check(
X.getFunction().getCutoff(),3*
sqrt(.2),1
e-11,
"Cutoff of 1D Gauss with unit radius-equivalent");
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
@ XY
Definition: StatisticsVector.h:21
@ XYZ
Definition: StatisticsVector.h:21
Evaluates time-resolved continuum fields and writes the data into a stat file.
Definition: CG.h:55
#define X
Definition: icosphere.cpp:20
#define INFO(i)
Definition: mumps_solver.h:54
const Mdouble sqrt_3
Definition: ExtendedMath.h:27
const Mdouble sqrt_2
Definition: ExtendedMath.h:26
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:16