24 assert_parameter_set_correctly();
33 bool j_computed_before = ML->jacobean_computed();
35 bool j_computed_after = ML->jacobean_computed();
44 if( (!j_computed_before) && j_computed_after ) {
45 increment_num_der1_evaluations();
46 J.reference(ML->uncert_weighted_jacobian());
51 increment_num_cost_evaluations();
52 R.reference(ML->uncert_weighted_model_measure_diff());
63 assert_parameter_set_correctly();
72 bool m_computed_before = ML->model_computed();
74 bool m_computed_after = ML->model_computed();
82 if( (!m_computed_before) && m_computed_after ) {
83 increment_num_cost_evaluations();
84 R.reference(ML->uncert_weighted_model_measure_diff());
89 increment_num_der1_evaluations();
90 J.reference(ML->uncert_weighted_jacobian());
The base class for all problem classes that implement a cost function.
virtual blitz::Array< double, 1 > parameters() const
Returns the current parameters.
virtual blitz::Array< double, 1 > parameters() const
Just returns the current values of parameters.
#define REGISTER_LUA_DERIVED_CLASS(X, Y)
boost::shared_ptr< MaxLikelihood > max_likelihood()
Apply value function to a blitz array.
virtual blitz::Array< double, 2 > jacobian()
Return the Jacobian of the residual of the NLLS problem at the current set point. ...
Contains classes to abstract away details in various Spurr Radiative Transfer software.
#define REGISTER_LUA_END()
virtual blitz::Array< double, 1 > residual()
Return the residual of the NLLS problem at the current set point.