![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <evaluation/statistics/dlre.hpp>


Public Member Functions | |
| virtual void | changeError (double newError) |
| Change error. | |
| virtual double | curXLev () |
| Return current x level to be completed. | |
| DLRE (const wns::pyconfig::View &config) | |
| DLRE (double xMin, double xMax, double intSize, double error, double preFirst, std::string name, std::string description, bool forceRMinusAOk, int maxNrv, int skipInterval, formatType format) | |
| Constructor for equi-distant x-values. | |
| DLRE (std::vector< double > xValuesArr, int level, double error, double preFirst, std::string name, std::string description, bool forceRMinusAOk, int maxNrv, int skipInterval, formatType format) | |
| Constructor for non-equi-distant x-values. | |
| virtual void | getResultLine (const int index, ResultLine &line) const =0 |
| Return result line. | |
| virtual int | maxIndex () const |
| Return the index of the maximum x value to be evaluated. | |
| virtual int | minIndex () const |
| return the index of the minimum x value to be evaluated | |
| virtual double | p (double xt) |
| Returns the prob. of xt. | |
| virtual void | print (std::ostream &stream=std::cout) const =0 |
| Print output. | |
| virtual void | put (double value)=0 |
| Put new value to probe. | |
| virtual void | reset () |
| Reset measurement results. | |
| void | setBase (double newBase) |
| Return factor for cond. prob. | |
| ~DLRE () | |
| Destructor. | |
Protected Types | |
| enum | ComparisonResult { noIndex = -3, greater = -2, lower = -1 } |
| Comparison result returned by getIndex(). More... | |
| enum | Phase { initialize, iterate, finish } |
| enum | ReasonType { ok, minimum, last } |
| reason for status = finish More... | |
Protected Member Functions | |
| bool | checkLargeSample (int index) const |
| Large sample conditions are fulfilled? | |
| int | getIndex (double value) const |
| get index of current x | |
| void | printAll (std::ostream &stream, functionType functionType, const double yMin) const |
| Output function-specific evaluation results. | |
Protected Attributes | |
| double | base_ |
| Needed for conditional probabilties. | |
| int | curIndex_ |
| Index of current x-value. | |
| int | curLevelIndex_ |
| Index of current x-level. | |
| bool | equiDist_ |
| Equi-distant x values or user defined? | |
| bool | forceRminusAOK_ |
| force last large sample criterion (r - av >= 10) | |
| int | h_ |
| Run time control (rtc) counter. | |
| int | indexMax_ |
| int | indexMin_ |
| double | intSize_ |
| distance between x values | |
| int | maxNrv_ |
| Maximal number of trials. | |
| enum wns::evaluation::statistics::DLRE::Phase | phase_ |
| int | preIndex_ |
| Index of predecessor. | |
| double | preRv_ |
| predecessor | |
| ReasonType | reason_ |
| Reason for end reached. | |
| double | relErrMax_ |
| Result * | results_ |
| Array of results. | |
| int | skipInterval_ |
| Number of samples after which simulation is checked for completion. | |
| int | wastedLeft_ |
| Values lower minimum. | |
| int | wastedRight_ |
| Values greater maximum. | |
| double | xMax_ |
| double | xMin_ |
| int | xOffset_ |
| Offset of x-values (step 1). | |
Static Protected Attributes | |
| static const int | largeSampleNumSortedValues_ = 100 |
| number of sorted values for large sample conditions | |
| static const int | largeSampleNumTransitions_ = 10 |
| Number of transitions for large sample conditions. | |
| static const int | largeSampleNumTrials_ = 1000 |
| Number of trials for large sample conditions. | |
Private Member Functions | |
| void | initEqui (double xMin, double xMax, double intSize, double preFirst) |
| Initialization which creates equidistant x-values for the bins, which have a width of 'intSize' between 'xMin' and 'xMax'. | |
| void | initNonEqui (int level, std::vector< double > xValuesArr, double preFirst) |
| Initialization with an array of x-values for the bins. | |
| void | printLevel (std::ostream &stream, int level, const std::string &errorString, bool discretePointFlag, functionType functionType) const |
Classes | |
| class | Result |
| Class DLRE::Result: results for one x interval. More... | |
| class | ResultLine |
| Class DLRE::resultLine: one line of evaluation results. More... | |
Definition at line 42 of file dlre.hpp.
enum wns::evaluation::statistics::DLRE::ComparisonResult [protected] |
enum wns::evaluation::statistics::DLRE::Phase [protected] |
enum wns::evaluation::statistics::DLRE::ReasonType [protected] |
| wns::evaluation::statistics::DLRE::DLRE | ( | std::vector< double > | xValuesArr, | |
| int | level, | |||
| double | error, | |||
| double | preFirst, | |||
| std::string | name, | |||
| std::string | description, | |||
| bool | forceRMinusAOk, | |||
| int | maxNrv, | |||
| int | skipInterval, | |||
| formatType | format | |||
| ) |
| wns::evaluation::statistics::DLRE::DLRE | ( | double | xMin, | |
| double | xMax, | |||
| double | intSize, | |||
| double | error, | |||
| double | preFirst, | |||
| std::string | name, | |||
| std::string | description, | |||
| bool | forceRMinusAOk, | |||
| int | maxNrv, | |||
| int | skipInterval, | |||
| formatType | format | |||
| ) |
| DLRE::DLRE | ( | const wns::pyconfig::View & | config | ) |
| void DLRE::changeError | ( | double | newError | ) | [virtual] |
change maximum relative error
Reimplemented in wns::evaluation::statistics::DLREF, wns::evaluation::statistics::DLREG, and wns::evaluation::statistics::DLREP.
| virtual void wns::evaluation::statistics::DLRE::getResultLine | ( | const int | index, | |
| ResultLine & | line | |||
| ) | const [pure virtual] |
| int DLRE::maxIndex | ( | ) | const [virtual] |
| int DLRE::minIndex | ( | ) | const [virtual] |
| virtual void wns::evaluation::statistics::DLRE::print | ( | std::ostream & | stream = std::cout |
) | const [pure virtual] |
Reimplemented from wns::evaluation::statistics::StatEval.
Implemented in wns::evaluation::statistics::DLREF, wns::evaluation::statistics::DLREG, and wns::evaluation::statistics::DLREP.
| void wns::evaluation::statistics::DLRE::printAll | ( | std::ostream & | stream, | |
| functionType | functionType, | |||
| const double | yMin | |||
| ) | const [protected] |
| void wns::evaluation::statistics::DLRE::printLevel | ( | std::ostream & | stream, | |
| int | level, | |||
| const std::string & | errorString, | |||
| bool | discretePointFlag, | |||
| functionType | functionType | |||
| ) | const [private] |
| virtual void wns::evaluation::statistics::DLRE::put | ( | double | value | ) | [pure virtual] |
Reimplemented from wns::evaluation::statistics::StatEval.
Implemented in wns::evaluation::statistics::DLREF, wns::evaluation::statistics::DLREG, and wns::evaluation::statistics::DLREP.
| void DLRE::reset | ( | ) | [virtual] |
reset collected data
Reimplemented from wns::evaluation::statistics::StatEval.
double wns::evaluation::statistics::DLRE::base_ [protected] |
int wns::evaluation::statistics::DLRE::curIndex_ [protected] |
int wns::evaluation::statistics::DLRE::curLevelIndex_ [protected] |
bool wns::evaluation::statistics::DLRE::equiDist_ [protected] |
int wns::evaluation::statistics::DLRE::h_ [protected] |
int wns::evaluation::statistics::DLRE::indexMax_ [protected] |
int wns::evaluation::statistics::DLRE::indexMin_ [protected] |
double wns::evaluation::statistics::DLRE::intSize_ [protected] |
const int DLRE::largeSampleNumSortedValues_ = 100 [static, protected] |
const int DLRE::largeSampleNumTransitions_ = 10 [static, protected] |
const int DLRE::largeSampleNumTrials_ = 1000 [static, protected] |
int wns::evaluation::statistics::DLRE::maxNrv_ [protected] |
int wns::evaluation::statistics::DLRE::preIndex_ [protected] |
double wns::evaluation::statistics::DLRE::preRv_ [protected] |
ReasonType wns::evaluation::statistics::DLRE::reason_ [protected] |
double wns::evaluation::statistics::DLRE::relErrMax_ [protected] |
Result* wns::evaluation::statistics::DLRE::results_ [protected] |
int wns::evaluation::statistics::DLRE::skipInterval_ [protected] |
int wns::evaluation::statistics::DLRE::wastedLeft_ [protected] |
int wns::evaluation::statistics::DLRE::wastedRight_ [protected] |
double wns::evaluation::statistics::DLRE::xMax_ [protected] |
double wns::evaluation::statistics::DLRE::xMin_ [protected] |
int wns::evaluation::statistics::DLRE::xOffset_ [protected] |
1.5.5