libcmaes 0.10.2
A C++11 library for stochastic optimization with CMA-ES
Loading...
Searching...
No Matches
libcmaes::pli Class Reference

profile likelihood object holder as a set of points and values. More...

#include <libcmaes/pli.h>

Public Member Functions

 pli (const int &k, const int &samplesize, const int &dim, const dVec &xm, const double &fvalue, const double &fup, const double &delta)
 profile likelihood constructor
 
std::pair< double, doublegetMinMax (const double &fvalue, int &minindex, int &maxindex)
 find bounds around the objective function parameters for a given value of f, base on pre-computed profile likelihood points.
 
void setMinMax ()
 
void setErrMinMax ()
 sets the errors bounds for this profile likelihood.
 
double get_err_min () const
 get lower error bound
 
double get_err_max () const
 get upper error bound
 
int get_k () const
 
int get_samplesize () const
 
dVec get_fvaluem () const
 
dMat get_xm () const
 
double get_min () const
 
double get_max () const
 

Private Attributes

int _k = -1
 
int _samplesize = 0
 
dVec _fvaluem
 
dMat _xm
 
double _min = 0.0
 
double _max = 0.0
 
double _errmin = 0.0
 
double _errmax = 0.0
 
int _minindex = -1
 
int _maxindex = -1
 
std::vector< int_err
 
double _fup
 
double _delta
 

Friends

class CMASolutions
 
template<class U >
class errstats
 

Detailed Description

profile likelihood object holder as a set of points and values.

Constructor & Destructor Documentation

◆ pli()

libcmaes::pli::pli ( const int k,
const int samplesize,
const int dim,
const dVec &  xm,
const double fvalue,
const double fup,
const double delta 
)
inline

profile likelihood constructor

Parameters
kdimension in which the profile likelihood was computed
samplesizenumber of steps of the linesearch direction
dimdimension of the objective function parameter space
xmvector of parameters at fvalue
fvaluethe function minima around which the profile likelihood was computed
fupthe function deviation for which the profile likelihood was computed
deltatolerance around fvalue + fup for which the profile likelihood was computed

Member Function Documentation

◆ get_err_max()

double libcmaes::pli::get_err_max ( ) const
inline

get upper error bound

Returns
upper error bound

◆ get_err_min()

double libcmaes::pli::get_err_min ( ) const
inline

get lower error bound

Returns
lower error bound

◆ getMinMax()

std::pair< double, double > libcmaes::pli::getMinMax ( const double fvalue,
int minindex,
int maxindex 
)
inline

find bounds around the objective function parameters for a given value of f, base on pre-computed profile likelihood points.

Parameters
fvaluefunction value
minindexindex of the profile likelihood point that is the lower bound
maxindexindex of the profile likelihood point that is the upper bound

◆ setMinMax()

void libcmaes::pli::setMinMax ( )
inline

\brie sets the bounds for this profile likelihood object based on original function value + fup


The documentation for this class was generated from the following file: