GClasses
|
At each iteration, this tries a random vector from the unit hypercube. (Your target function should scale the candidate vectors as necessary to cover the desired space.) More...
#include <GStabSearch.h>
Public Member Functions | |
GRandomSearch (GTargetFunction *pCritic, GRand *pRand) | |
virtual | ~GRandomSearch () |
virtual double | iterate () |
Try another random vector. | |
virtual double * | currentVector () |
Returns the best vector yet found. | |
Protected Attributes | |
GRand * | m_pRand |
double * | m_pCandidate |
double * | m_pBestVector |
double | m_bestError |
At each iteration, this tries a random vector from the unit hypercube. (Your target function should scale the candidate vectors as necessary to cover the desired space.)
GClasses::GRandomSearch::GRandomSearch | ( | GTargetFunction * | pCritic, |
GRand * | pRand | ||
) |
virtual GClasses::GRandomSearch::~GRandomSearch | ( | ) | [virtual] |
virtual double* GClasses::GRandomSearch::currentVector | ( | ) | [virtual] |
Returns the best vector yet found.
Implements GClasses::GOptimizer.
virtual double GClasses::GRandomSearch::iterate | ( | ) | [virtual] |
Try another random vector.
Implements GClasses::GOptimizer.
double GClasses::GRandomSearch::m_bestError [protected] |
double* GClasses::GRandomSearch::m_pBestVector [protected] |
double* GClasses::GRandomSearch::m_pCandidate [protected] |
GRand* GClasses::GRandomSearch::m_pRand [protected] |