|
| NelderMead2DConfig (std::function< float(Geometry2d::Point)> &f, Geometry2d::Point start=Geometry2d::Point(0, 0), Geometry2d::Point step=Geometry2d::Point(1, 1), Geometry2d::Point minDist=Geometry2d::Point(0.001, 0.001), float reflectionCoeff=1, float expansionCoeff=2, float contractionCoeff=0.5, float shrinkCoeff=0.5, int maxIterations=100, float maxValue=0, float maxThresh=0) |
| Creates a Nelder-Mead 2D Config. More...
|
|
◆ NelderMead2DConfig()
NelderMead2DConfig::NelderMead2DConfig |
( |
std::function< float(Geometry2d::Point)> & |
f, |
|
|
Geometry2d::Point |
start = Geometry2d::Point(0, 0) , |
|
|
Geometry2d::Point |
step = Geometry2d::Point(1, 1) , |
|
|
Geometry2d::Point |
minDist = Geometry2d::Point(0.001, 0.001) , |
|
|
float |
reflectionCoeff = 1 , |
|
|
float |
expansionCoeff = 2 , |
|
|
float |
contractionCoeff = 0.5 , |
|
|
float |
shrinkCoeff = 0.5 , |
|
|
int |
maxIterations = 100 , |
|
|
float |
maxValue = 0 , |
|
|
float |
maxThresh = 0 |
|
) |
| |
|
inline |
Creates a Nelder-Mead 2D Config.
- Parameters
-
f | std function pointer which returns F(X, Y) |
start | starting point of the simplex (Triangle in 2D Case) |
step | starting step magnitudes in X, Y directions |
minDist | minimum distance of bounding box before exit |
reflectionCoeff | perecent to reflect by in the oposite direction Must be greater than 0 |
expansionCoeff | percent to extend single point by Must be greater than 1 |
contractionCoeff | percent to contract single point by Must be greater than 0 and less than or equal to 0.5 |
shrinkCoeff | percent to shrink all points by Must be between 0 and 1 |
maxIterations | maximum number of iterations to reach before end |
maxValue | max value to exit early at |
maxThresh | threshold for the max vlaue before exit |
- Note
- Set maxValue = maxThresh to disable
The documentation for this class was generated from the following file: