24 #ifndef _CRITERIA_MI_HPP_ 25 #define _CRITERIA_MI_HPP_ 43 mSqAlpha = sqrt(std::log(2/1e-6));
46 void setParameters(
const vectord ¶ms)
47 { mSqAlpha = sqrt(params(0)); };
49 size_t nParameters() {
return 1;};
51 double operator() (
const vectord &x)
54 double mu = d->getMean();
55 double sigma2 = d->getStd() * d->getStd();
56 return mu + mSqAlpha * (sqrt(sigma2+mGamma) - sqrt(mGamma));
58 void update(
const vectord &x)
61 double mu = d->getMean();
62 double sigma2 = d->getStd() * d->getStd();
65 std::string name() {
return "cMI";};
Namespace of the library interface.
Abstract class to implement Bayesian regressors.
virtual ProbabilityDistribution * prediction(const vectord &query)=0
Function that returns the prediction of the GP for a query point in the hypercube [0...
Abstract interface for criteria functors.
Abstract and factory modules for criteria.