25 #ifndef _CRITERIA_FUNCTORS_HPP_ 26 #define _CRITERIA_FUNCTORS_HPP_ 49 double evaluate(
const vectord &x) {
return (*
this)(x);}
50 virtual double operator() (
const vectord &x) = 0;
52 virtual std::string name() = 0;
53 virtual void setParameters(
const vectord ¶ms) = 0;
54 virtual size_t nParameters() = 0;
57 virtual void reset() { assert(
false); };
58 void setRandomEngine(randEngine& eng){ mtRandom = ŋ }
62 virtual void pushCriteria(
Criteria* crit){};
63 virtual bool requireComparison(){
return false; };
64 virtual void initialCriteria(){};
65 virtual void update(
const vectord &x){};
66 virtual bool rotateCriteria(){
return false;};
67 virtual void pushResult(
const vectord& prevResult){};
68 virtual std::string getBestCriteria(vectord& best)
69 { assert(
false);
return name(); };
94 typedef Criteria* (*create_func_definition)();
95 std::map<std::string , CriteriaFactory::create_func_definition> registry;
Factory model for criterion functions This factory is based on the libgp library by Manuel Blum https...
Namespace of the library interface.
Abstract class to implement Bayesian regressors.
Abstract module for a Bayesian regressor.
Abstract interface for criteria functors.