25 #ifndef UQ_GAUSSIAN_LLHD_H
26 #define UQ_GAUSSIAN_LLHD_H
30 #include <queso/ScalarFunction.h>
48 template <
class V = GslVector,
class M = GslMatrix>
60 const V & observations);
71 virtual void evaluateModel(
const V & domainVector,
const V * domainDirection,
72 V & modelOutput, V * gradVector, M * hessianMatrix,
73 V * hessianEffect)
const;
94 virtual void evaluateModel(
const V & domainVector, V & modelOutput)
const
95 { this->
evaluateModel(domainVector,NULL,modelOutput,NULL,NULL,NULL); }
98 virtual double actualValue(
const V & domainVector,
const V * ,
99 V * , M * , V * )
const
100 {
return std::exp(this->
lnValue(domainVector)); }
108 #endif // UQ_GAUSSIAN_LLHD_H
A templated (base) class for handling scalar functions.
virtual ~LikelihoodBase()=0
Destructor, pure to make this class abstract.
A templated class for handling sets.
const VectorSet< V, M > & domainSet() const
Access to the protected attribute m_domainSet: domain set of the scalar function. ...
virtual double actualValue(const V &domainVector, const V *, V *, M *, V *) const
Actual value of the scalar function.
virtual double lnValue(const V &domainVector, const V *domainDirection, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Logarithm of the value of the scalar function. Deprecated.
LikelihoodBase(const char *prefix, const VectorSet< V, M > &domainSet, const V &observations)
Default constructor.
virtual void evaluateModel(const V &domainVector, const V *domainDirection, V &modelOutput, V *gradVector, M *hessianMatrix, V *hessianEffect) const
Deprecated. Evaluates the user's model at the point domainVector.
virtual void evaluateModel(const V &domainVector, V &modelOutput) const
Evaluates the user's model at the point domainVector.
Base class for canned Gaussian likelihoods.