18 #include "eckit/config/Configuration.h" 20 #include "oops/util/Logger.h" 26 : conf_(
conf), variance_(0.0), active_(
false)
28 if (
conf_.has(
"standard_deviation")) {
30 const double zz =
conf_.getDouble(
"standard_deviation");
58 const double stdev = std::sqrt(
variance_);
59 static std::mt19937 generator(3);
60 static std::normal_distribution<double> distribution(0.0, stdev);
61 dx.
bias() = distribution(generator);
66 os <<
"ModelBiasCovariance: variance = " <<
variance_ << std::endl;
68 os <<
"ModelBiasCovariance not active" << std::endl;
const eckit::LocalConfiguration conf_
ModelBiasCovariance(const eckit::Configuration &, const Resolution &)
Constructor, destructor.
void randomize(ModelBiasCorrection &) const
void inverseMultiply(const ModelBiasCorrection &, ModelBiasCorrection &) const
integer(long), parameter false
subroutine, public info(self)
The namespace for the L95 model.
void print(std::ostream &) const
void multiply(const ModelBiasCorrection &, ModelBiasCorrection &) const