62 template<
class T=
float>
73 return optimize(-1,maxTimeSteps);
77 Result optimize(T minError,
int maxSteps);
84 virtual T *getData() = 0;
88 virtual T getError(
const T *
data)=0;
93 virtual const T *getNoise(
int currentTime,
int endTime)=0;
97 virtual void reinitialize() = 0;
100 virtual void notifyProgress(
int t,
int numSteps,
int startError,
101 int currBestError,
int currError,
const T *
data,
int dataDim);
undocument this line if you encounter any issues!
Definition: Any.h:37
T error
reached minimum error
Definition: StochasticOptimizer.h:44
The StochasticOptimizer is a tiny frame-work for simple stochastic optimization processes.
Definition: StochasticOptimizer.h:63
Result optimize(int maxTimeSteps)
start optimization process with given step count
Definition: StochasticOptimizer.h:72
int steps
steps iterated!
Definition: StochasticOptimizer.h:46
ICLQt_API ImgROI data(ImgQ &r)
creates full ROI ROI-struct
int m_dataDim
internal data-dimension variable
Definition: StochasticOptimizer.h:105
const T * data
resulting optimized data vector
Definition: StochasticOptimizer.h:43
T startError
first error measurement (reached with initial data vector)
Definition: StochasticOptimizer.h:45
Utility structure for the stochastic optimizer class.
Definition: StochasticOptimizer.h:40
#define ICLMath_IMP
Definition: CompatMacros.h:172
StochasticOptimizerResult< T > Result
Result structure.
Definition: StochasticOptimizer.h:66
StochasticOptimizerResult(const T *data=0, T error=0, T startError=0, int steps=0)
creates a new result structure (internally used only)