5 #ifndef BPP_NUMERIC_FUNCTION_NEWTONONEDIMENSION_H 6 #define BPP_NUMERIC_FUNCTION_NEWTONONEDIMENSION_H 44 throw NullPointerException(
"NewtonOneDimension::firstOrderDerivableFunction() : no function associated to this optimizer.");
56 throw NullPointerException(
"NewtonOneDimension::firstOrderDerivableFunction() : no function associated to this optimizer.");
78 throw NullPointerException(
"NewtonOneDimension::secondOrderDerivableFunction() : no function associated to this optimizer.");
90 throw NullPointerException(
"NewtonOneDimension::secondOrderDerivableFunction() : no function associated to this optimizer.");
105 #endif // BPP_NUMERIC_FUNCTION_NEWTONONEDIMENSION_H std::shared_ptr< SecondOrderDerivable > getSecondOrderDerivableFunction()
This is the abstract class for first order derivable functions.
void doInit(const ParameterList ¶ms)
This function is called by the init() method and contains all calculations.
void setMaximumNumberOfCorrections(unsigned int mx)
std::shared_ptr< FunctionInterface > function_
The function to optimize.
std::shared_ptr< const SecondOrderDerivable > getSecondOrderDerivableFunction() const
The parameter list object.
virtual ~NewtonOneDimension()
NewtonOneDimension(std::shared_ptr< SecondOrderDerivable > function=nullptr)
std::shared_ptr< FirstOrderDerivable > getFirstOrderDerivableFunction()
std::shared_ptr< const FirstOrderDerivable > getFirstOrderDerivableFunction() const
SecondOrderDerivable & secondOrderDerivableFunction()
The base class exception for NULL pointer error. This exception may be thrown when an unexpected NULL...
const SecondOrderDerivable & secondOrderDerivableFunction() const
double doStep()
This function is called by the step() method and contains all calculations.
Partial implementation of the Optimizer interface.
FirstOrderDerivable & firstOrderDerivableFunction()
NewtonOneDimension * clone() const
Create a copy of this object and send a pointer to it.
const FirstOrderDerivable & firstOrderDerivableFunction() const
Newton's optimization for one parameter.
This is the abstract class for second order derivable functions.
unsigned int _maxCorrection