35 logger(
INFO,
" Checking setting the standard deviation of cg functions");
39 X.setStandardDeviation(1);
43 XY.setStandardDeviation(1);
47 XYZ.setStandardDeviation(1);
48 helpers::check(
XYZ.getFunction().getCutoff(),sqrt(5./3.),1e-11,
"Cutoff of 3D Heaviside with unit variance");
53 X.setStandardDeviation(1);
54 helpers::check(
X.getFunction().getCutoff(),sqrt(10.5),1e-11,
"Cutoff of 1D Lucy with unit variance");
57 XY.setStandardDeviation(1);
58 helpers::check(
XY.getFunction().getCutoff(),sqrt(5.6),1e-11,
"Cutoff of 2D Lucy with unit variance");
61 XYZ.setStandardDeviation(1);
62 helpers::check(
XYZ.getFunction().getCutoff(),2,1e-11,
"Cutoff of 3D Lucy with unit variance");
67 X.setStandardDeviation(1);
68 helpers::check(
X.getFunction().getCutoff(),3,1e-11,
"Cutoff of 1D Gauss with unit variance");
71 XY.setStandardDeviation(1);
72 helpers::check(
XY.getFunction().getCutoff(),3/sqrt(2),1e-11,
"Cutoff of 2D Gauss with unit variance");
75 XYZ.setStandardDeviation(1);
76 helpers::check(
XYZ.getFunction().getCutoff(),3/sqrt(3),1e-11,
"Cutoff of 3D Gauss with unit variance");
92 helpers::check(
XYZ.getFunction().getCutoff(),sqrt(5./3.)*sqrt(.6),1e-11,
"Cutoff of 3D Heaviside with unit radius-equivalent");
98 helpers::check(
X.getFunction().getCutoff(),sqrt(6)*sqrt(.2),1e-11,
"Cutoff of 1D Linear with unit radius-equivalent");
102 helpers::check(
XY.getFunction().getCutoff(),sqrt(10./3)*sqrt(.4),1e-11,
"Cutoff of 2D Linear with unit radius-equivalent");
106 helpers::check(
XYZ.getFunction().getCutoff(),sqrt(5./2)*sqrt(.6),1e-11,
"Cutoff of 3D Linear with unit radius-equivalent");
112 helpers::check(
X.getFunction().getCutoff(),sqrt(10.5)*sqrt(.2),1e-11,
"Cutoff of 1D Lucy with unit radius-equivalent");
116 helpers::check(
XY.getFunction().getCutoff(),sqrt(5.6)*sqrt(.4),1e-11,
"Cutoff of 2D Lucy with unit radius-equivalent");
120 helpers::check(
XYZ.getFunction().getCutoff(),2*sqrt(.6),1e-11,
"Cutoff of 3D Lucy with unit radius-equivalent");
126 helpers::check(
X.getFunction().getCutoff(),3*sqrt(.2),1e-11,
"Cutoff of 1D Gauss with unit radius-equivalent");
130 helpers::check(
XY.getFunction().getCutoff(),3/sqrt(2)*sqrt(.4),1e-11,
"Cutoff of 2D Gauss with unit radius-equivalent");
134 helpers::check(
XYZ.getFunction().getCutoff(),3/sqrt(3)*sqrt(.6),1e-11,
"Cutoff of 3D Gauss with unit radius-equivalent");
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
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:42
@ X
Definition: StatisticsVector.h:42
@ XYZ
Definition: StatisticsVector.h:42
Evaluates time-resolved continuum fields and writes the data into a stat file.
Definition: CG.h:76
const Mdouble sqrt_3
Definition: ExtendedMath.h:49
const Mdouble sqrt_2
Definition: ExtendedMath.h:48
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:37