2 #include "AnimaOptimizersExport.h" 3 #include <itkSingleValuedCostFunction.h> 16 m_RootRelativeTolerance = std::sqrt(std::numeric_limits<double>::epsilon());
20 bool operator()(
const double &a,
const double &b);
23 double m_RootRelativeTolerance;
39 m_ParametersVector.set_size(1);
60 void SetFunctionValueAtInitialLowerBound(
const double &val);
61 void SetFunctionValueAtInitialUpperBound(
const double &val);
74 virtual double Optimize() = 0;
78 m_RootRelativeTolerance = std::sqrt(std::numeric_limits<double>::epsilon());
79 m_CostFunctionTolerance = std::sqrt(std::numeric_limits<double>::epsilon());
80 m_MaximumNumberOfIterations = 50;
81 m_ProvidedFunctionValueAtInitialLowerBound =
false;
82 m_ProvidedFunctionValueAtInitialUpperBound =
false;
83 m_FunctionValueAtInitialLowerBound = 0.0;
84 m_FunctionValueAtInitialUpperBound = 0.0;
91 double m_RootRelativeTolerance;
93 double m_CostFunctionTolerance;
94 unsigned int m_MaximumNumberOfIterations;
97 bool m_ProvidedFunctionValueAtInitialLowerBound;
98 bool m_ProvidedFunctionValueAtInitialUpperBound;
99 double m_FunctionValueAtInitialLowerBound;
100 double m_FunctionValueAtInitialUpperBound;
double GetFunctionValueAtInitialLowerBound()
BaseCostFunctionType::Pointer BaseCostFunctionPointer
bool GetProvidedFunctionValueAtInitialLowerBound()
void SetUpperBound(const double &val)
void SetRootFindingFunction(BaseCostFunctionType *f)
virtual ~BaseRootFindingAlgorithm()
double GetRootRelativeTolerance()
RootToleranceBoostBridge()
void SetRootRelativeTolerance(const double &tol)
bool GetProvidedFunctionValueAtInitialUpperBound()
unsigned int GetMaximumNumberOfIterations()
double GetCostFunctionTolerance()
BaseCostFunctionType::Pointer BaseCostFunctionPointer
BaseCostFunctionType::ParametersType ParametersType
void SetLowerBound(const double &val)
void SetRootRelativeTolerance(const double &val)
BaseCostFunctionType::ParametersType ParametersType
void SetCostFunctionTolerance(const double &val)
double GetFunctionValueAtInitialUpperBound()
BaseRootFindingAlgorithm()
bool operator()(const double &a, const double &b)
itk::SingleValuedCostFunction BaseCostFunctionType
itk::SingleValuedCostFunction BaseCostFunctionType
RootFindingFunctionBoostBridge()
void SetMaximumNumberOfIterations(const unsigned int &val)
void SetRootFindingFunction(BaseCostFunctionType *f)
BaseCostFunctionType * GetRootFindingFunction()