eos 1.4.0
|
#include <ceres_nonlinear.hpp>
Public Member Functions | |
NormCost (int num_parameters) | |
template<typename T > | |
bool | operator() (const T *const x, T *residual) const |
Static Public Member Functions | |
template<int num_parameters> | |
static ceres::CostFunction * | Create () |
Cost function that consists of the parameter values themselves as residual.
If used with a squared loss, this corresponds to an L2 norm constraint on the parameters. This class is implemented exactly like Ceres' NormalPrior.
|
inline |
Creates a new NormCost object with set number of parameters.
[in] | num_parameters | Number of parameters that the parameter vector contains. |
|
inlinestatic |
Factory to hide the construction of the CostFunction object from the client code.
The number of parameters is given as a template argument, so that we can use Ceres' fixed-size constructor.
|
inline |
Cost function implementation.
[in] | x | An array of parameters. |
[in] | residual | An array of the resulting residuals. |