libcmaes 0.10.2
A C++11 library for stochastic optimization with CMA-ES
Loading...
Searching...
No Matches
errstats.h
1
22#ifndef ERRSTATS_H
23#define ERRSTATS_H
24
25#include <libcmaes/pli.h>
26#include <libcmaes/contour.h>
27#include <libcmaes/cmaes.h>
28
29namespace libcmaes
30{
31
32 template <class TGenoPheno=GenoPheno<NoBoundStrategy>>
34 {
35 public:
36 /*- profile likelihood -*/
37
52 static pli profile_likelihood(FitFunc &func,
55 const int &k,
56 const bool &curve=false,
57 const int &samplesize=10,
58 const double &fup=0.1,
59 const double &delta=0.1,
60 const int &maxiters=1e4);
61
62 private:
77 static void profile_likelihood_search(FitFunc &func,
79 pli &le,
80 const CMASolutions &cmasol,
81 const int &k,
82 const bool &neg,
83 const int &samplesize,
84 const double &fup,
85 const double &delta,
86 const int &maxiters,
87 const bool &curve);
88
104 static void take_linear_step(FitFunc &func,
106 const int &k,
107 const double &minfvalue,
108 const double &fup,
109 const double &delta,
110 const int &n,
111 const bool &linit,
112 const dMat &eigenve,
113 double &d,
114 dVec &x);
115
116 public:
129 static CMASolutions optimize_vpk(FitFunc &func,
131 const CMASolutions &cmasol,
132 const std::vector<int> &k,
133 const std::vector<double> &vk,
134 const dVec &x0,
135 const bool &pheno_x0=true,
136 const bool &pheno_vk=true);
137
150 static CMASolutions optimize_pk(FitFunc &func,
152 const CMASolutions &cmasol,
153 const int &k,
154 const double &vk,
155 const dVec &x0,
156 const bool &pheno_x0=true,
157 const bool &pheno_vk=true);
158
159 /*- contour -*/
160 public:
174 static contour contour_points(FitFunc & func, const int &px, const int &py, const int &npoints, const double &fup,
177 const double &delta=0.1,
178 const int &maxiters=1e4);
179
180 private:
192 static fcross cross(FitFunc &func,
195 const double &fup,
196 const std::vector<int> &par, const std::vector<double> &pmid,
197 const std::vector<double> &pdir, const double &ftol);
198 };
199
200}
201
202#endif
Holder of the set of evolving solutions from running an instance of CMA-ES.
Definition cmasolutions.h:42
an optimizer main class.
Definition esoptimizer.h:72
function contour as a set of points and values.
Definition contour.h:51
Definition errstats.h:34
function crossing as point.
Definition contour.h:33
profile likelihood object holder as a set of points and values.
Definition pli.h:35
linear scaling of the parameter space to achieve similar sensitivity across all components.
Definition acovarianceupdate.h:30