1 #ifndef NLLS_MAX_A_POSTERIORI_H 2 #define NLLS_MAX_A_POSTERIORI_H 6 #include <boost/shared_ptr.hpp> 36 virtual blitz::Array<double, 1>
residual();
46 virtual blitz::Array<double, 2>
jacobian();
54 {
return MAP->measurement_size()+
MAP->expected_parameter_size(); }
62 {
return MAP->expected_parameter_size(); }
71 virtual void parameters(
const blitz::Array<double, 1>& x);
96 virtual void print(std::ostream& Os)
const 97 { Os <<
"NLLSMaxAPosteriori"; }
virtual blitz::Array< double, 1 > residual()
Return the residual of the NLLS problem at the current set point.
virtual blitz::Array< double, 1 > parameters() const
Returns the current parameters.
virtual void print(std::ostream &Os) const
Print description of object.
virtual ~NLLSMaxAPosteriori()
The state for a NLLS problem with implemented residual function and its Jacobian. ...
virtual int residual_size() const
Return the size of the residual that will be returned by residual()
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. ...
const boost::shared_ptr< MaxAPosteriori > MAP
virtual blitz::Array< double, 1 > parameters() const
Just returns the current values of parameters.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
NLLSMaxAPosteriori(const boost::shared_ptr< MaxAPosteriori > &map)
Constructor.
virtual int expected_parameter_size() const
Return the expected size of the parameter X.
boost::shared_ptr< MaxAPosteriori > max_a_posteriori()