ReFRACtor
|
#include <connor_cost_function.h>
Public Member Functions | |
ConnorCostFunction (const boost::shared_ptr< StateVector > &Sv, const boost::shared_ptr< ForwardModel > &fm, const boost::shared_ptr< Observation > &inst_meas) | |
virtual | ~ConnorCostFunction () |
virtual void | cost_function (const blitz::Array< double, 1 > &X, blitz::Array< double, 1 > &Residual, blitz::Array< double, 1 > &Se, blitz::Array< double, 2 > &Jacobian) const |
For the given value of X, calculate the residuals and jacobians. More... | |
virtual void | print (std::ostream &Os) const |
Print description of object. More... | |
std::string | print_to_string () const |
Print to string. More... | |
Definition at line 10 of file connor_cost_function.h.
|
inline |
Definition at line 12 of file connor_cost_function.h.
|
inlinevirtual |
Definition at line 19 of file connor_cost_function.h.
|
inlinevirtual |
For the given value of X, calculate the residuals and jacobians.
The residual is defined as F(x) - y, so the Jacobian of the residuals is the same as the Jacobian of F(x).
X | Input value |
Residual | On exit, set to the residual of the cost function |
Se | On exit, the covariance of the residual. We assume the covariance is a diagonal matrix, and just return the diagonal elements |
Jacobian | On exit, the Jacobian of the cost function. |
Implements FullPhysics::CostFunction.
Definition at line 20 of file connor_cost_function.h.
|
inlinevirtual |
Print description of object.
Reimplemented from FullPhysics::CostFunction.
Definition at line 41 of file connor_cost_function.h.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.