ANIMA  4.0
animaBaseRootFindingAlgorithm.cxx
Go to the documentation of this file.
2 
3 namespace anima
4 {
5 
6 bool RootToleranceBoostBridge::operator()(const double &a, const double &b)
7 {
8  return std::abs(b - a) < m_RootRelativeTolerance * (a + b) / 2.0;
9 }
10 
12 {
13  m_ParametersVector[0] = x;
14  return m_RootFindingFunction->GetValue(m_ParametersVector);
15 }
16 
18 {
19  m_FunctionValueAtInitialLowerBound = val;
20  m_ProvidedFunctionValueAtInitialLowerBound = true;
21 }
22 
24 {
25  m_FunctionValueAtInitialUpperBound = val;
26  m_ProvidedFunctionValueAtInitialUpperBound = true;
27 }
28 
29 } // end namespace anima
void SetFunctionValueAtInitialLowerBound(const double &val)
bool operator()(const double &a, const double &b)
void SetFunctionValueAtInitialUpperBound(const double &val)