![]() |
ReFRACtor
|
This class calculates a cost function, along with a jacobian. More...
#include <cost_function.h>
Inheritance diagram for FullPhysics::CostFunction:
Collaboration diagram for FullPhysics::CostFunction:Public Member Functions | |
| virtual | ~CostFunction () |
| 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 =0 |
| 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... | |
This class calculates a cost function, along with a jacobian.
Definition at line 10 of file cost_function.h.
|
inlinevirtual |
Definition at line 12 of file cost_function.h.
|
pure virtual |
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. |
Implemented in FullPhysics::ConnorCostFunction.
|
inlinevirtual |
Print description of object.
Reimplemented in FullPhysics::ConnorCostFunction.
Definition at line 37 of file 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.