Generic sum of the squares of differentiable functions. More...
#include <roboptim/core/sum-of-c1-squares.hh>
Public Member Functions | |
GenericSumOfC1Squares (const boost::shared_ptr< parent_t > &function, const std::string &name) | |
GenericSumOfC1Squares (const GenericSumOfC1Squares< T > &function) | |
virtual | ~GenericSumOfC1Squares () |
const boost::shared_ptr< const parent_t > & | baseFunction () const |
Get base function Base function is the vector valued function given at construction of this class. | |
Types | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (GenericDifferentiableFunction< T >) | |
Protected Member Functions | |
virtual void | impl_compute (result_ref result, const_argument_ref x) const |
Compute value of function Value is sum of squares of coordinates of vector valued base function. | |
virtual void | impl_gradient (gradient_ref gradient, const_argument_ref x, size_type row=0) const |
Gradient. |
Generic sum of the squares of differentiable functions.
This type enables roboptim to handle Levenberg-Marquardt algorithm. This algorithm indeed minimizes the sum of squares of differentiable functions.
The differentiable functions are stored in a vector valued function called base function.
T | function type |
roboptim::GenericSumOfC1Squares< T >::GenericSumOfC1Squares | ( | const boost::shared_ptr< parent_t > & | function, |
const std::string & | name | ||
) | [explicit] |
roboptim::GenericSumOfC1Squares< T >::GenericSumOfC1Squares | ( | const GenericSumOfC1Squares< T > & | function | ) | [explicit] |
roboptim::GenericSumOfC1Squares< T >::~GenericSumOfC1Squares | ( | ) | [virtual] |
const boost::shared_ptr< const typename GenericSumOfC1Squares< T >::parent_t > & roboptim::GenericSumOfC1Squares< T >::baseFunction | ( | ) | const |
Get base function Base function is the vector valued function given at construction of this class.
void roboptim::GenericSumOfC1Squares< T >::impl_compute | ( | result_ref | result, |
const_argument_ref | x | ||
) | const [protected, virtual] |
Compute value of function Value is sum of squares of coordinates of vector valued base function.
ROBOPTIM_DO_NOT_CHECK_ALLOCATION
Implements roboptim::GenericFunction< T >.
void roboptim::GenericSumOfC1Squares< T >::impl_gradient | ( | gradient_ref | gradient, |
const_argument_ref | x, | ||
size_type | row = 0 |
||
) | const [protected, virtual] |
roboptim::GenericSumOfC1Squares< T >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | GenericDifferentiableFunction< T > | ) |