8 bool continueLoop =
true;
9 unsigned int nbIterations = 0;
12 if (numParameters > 1)
13 throw itk::ExceptionObject(__FILE__, __LINE__,
"Bisection algorithm does not implement multi-dimensional optimization. Only one parameter allowed.");
24 p[0] = (internalLowerBound + internalUpperBound) / 2.0;
30 internalUpperBound = p[0];
32 internalLowerBound = p[0];
35 (std::abs(internalUpperBound - internalLowerBound) < this->
GetRootRelativeTolerance() * (internalLowerBound + internalUpperBound) / 2.0))
double GetRootRelativeTolerance()
unsigned int GetMaximumNumberOfIterations()
double GetCostFunctionTolerance()
BaseCostFunctionType::ParametersType ParametersType
double Optimize() ITK_OVERRIDE
BaseCostFunctionType * GetRootFindingFunction()