16 #include "eckit/config/Configuration.h"
17 #include "eckit/config/LocalConfiguration.h"
19 #include "oops/util/Logger.h"
25 : bias_(0.0), active_(false)
27 if (params.
covariance.value() != boost::none &&
28 params.
covariance.value()->standardDeviation.value() != boost::none) {
31 if (
active_) {oops::Log::trace() <<
"ObsBiasCorrection::ObsBiasCorrection created." << std::endl;}
36 : bias_(0.0), active_(other.active_)
88 vect.push_back(
bias_);
92 if (!vect.empty())
bias_ = vect.at(index);
97 if (
active_) {os << std::endl <<
"ObsBiasCorrection = " <<
bias_;}
void axpy(const double, const ObsBiasCorrection &)
void print(std::ostream &) const override
void serialize(std::vector< double > &) const override
ObsBiasCorrection()
Constructor, destructor.
ObsBiasCorrection & operator*=(const double)
void deserialize(const std::vector< double > &, size_t &) override
ObsBiasCorrection & operator=(const ObsBiasCorrection &)
void diff(const ObsBias &, const ObsBias &)
Linear algebra operators.
double dot_product_with(const ObsBiasCorrection &) const
ObsBiasCorrection & operator-=(const ObsBiasCorrection &)
ObsBiasCorrection & operator+=(const ObsBiasCorrection &)
size_t serialSize() const override
Serialize and deserialize.
Class to handle observation bias parameters.
const double & value() const
oops::OptionalParameter< ObsBiasCovarianceParameters > covariance
A Simple Observation Data Handler.
The namespace for the L95 model.