1 #ifndef NLLS_MAX_LIKELIHOOD_H 2 #define NLLS_MAX_LIKELIHOOD_H 6 #include <boost/shared_ptr.hpp> 36 virtual blitz::Array<double, 1>
residual();
46 virtual blitz::Array<double, 2>
jacobian();
54 {
return ML->measurement_size(); }
62 {
return ML->expected_parameter_size(); }
71 virtual void parameters(
const blitz::Array<double, 1>& x);
95 virtual void print(std::ostream& Os)
const 96 { Os <<
"NLLSMaxLikelihood"; }
virtual blitz::Array< double, 1 > parameters() const
Returns the current parameters.
virtual int residual_size() const
Return the size of the residual that will be returned by residual()
virtual blitz::Array< double, 1 > parameters() const
Just returns the current values of parameters.
boost::shared_ptr< MaxLikelihood > max_likelihood()
virtual ~NLLSMaxLikelihood()
The state for a NLLS problem with implemented residual function and its Jacobian. ...
NLLSMaxLikelihood(const boost::shared_ptr< MaxLikelihood > &ml)
Constructor.
The base class for the Non-Linear Least Squares problem.
virtual blitz::Array< double, 2 > jacobian()
Return the Jacobian of the residual of the NLLS problem at the current set point. ...
virtual int expected_parameter_size() const
Return the size of the parameter X.
virtual void print(std::ostream &Os) const
Print description of object.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
virtual blitz::Array< double, 1 > residual()
Return the residual of the NLLS problem at the current set point.
const boost::shared_ptr< MaxLikelihood > ML