19 #ifndef IPLOGRATIOFUNCTIONAL_HH_HSEWI0Q8
20 #define IPLOGRATIOFUNCTIONAL_HH_HSEWI0Q8
22 #include "pism/inverse/functional/IPFunctional.hh"
Abstract base class for functions from ice model vectors to .
virtual void normalize(double scale)
Determine the normalization constant for the functional.
array::Vector & m_u_observed
virtual ~IPLogRatioFunctional()
array::Scalar * m_weights
virtual void valueAt(array::Vector &x, double *OUTPUT)
Computes the value of the functional at the vector x.
IPLogRatioFunctional(std::shared_ptr< const Grid > grid, array::Vector &u_observed, double eps, array::Scalar *weights=NULL)
virtual void gradientAt(array::Vector &x, array::Vector &gradient)
Computes the gradient of the functional at the vector x.
Implements a functional for log-ratio errors.