#include "numeric/funcobj.hxx"#include <string>#include <memory>#include <vector>#include <exception>#include <cstdlib>

Go to the source code of this file.
Classes | |
| class | TestFailed |
| class | TestBaseFunc1 |
| class | TestBaseFunc2 |
Functions | |
| double | getRandomNumber () |
| void | checkVarValues (const BaseFuncObj &rBaseFunc, size_t varIndex, double varIndexValue) |
| void | resetVarValues (BaseFuncObj &rFuncObj) |
| void | checkVarRatio (BaseFuncObj &rFuncObj, const vector< double > &ratios) |
| void | runTest (BaseFuncObj *p) |
| int | main () |
| void checkVarRatio | ( | BaseFuncObj & | rFuncObj, | |
| const vector< double > & | ratios | |||
| ) |
| void checkVarValues | ( | const BaseFuncObj & | rBaseFunc, | |
| size_t | varIndex, | |||
| double | varIndexValue | |||
| ) |
| double getRandomNumber | ( | ) |
Generate a random number between 0 and 1.
Definition at line 119 of file funcobj_test.cxx.
Referenced by runTest().
| int main | ( | ) |
| void resetVarValues | ( | BaseFuncObj & | rFuncObj | ) |
| void runTest | ( | BaseFuncObj * | p | ) |
Definition at line 186 of file funcobj_test.cxx.
References checkVarRatio(), checkVarValues(), getRandomNumber(), and resetVarValues().
1.5.3