1 #ifndef COST_FUNCTION_H     2 #define COST_FUNCTION_H     4 #include <blitz/array.h>    29                         blitz::Array<double, 1>& Residual,
    30                         blitz::Array<double, 1>& Se,
    31                         blitz::Array<double, 2>& Jacobian) 
const = 0;
    37   virtual void print(std::ostream& Os)
 const {Os << 
"CostFunction";}
 
This is a Mixin for classes that can be printed. 
 
virtual void print(std::ostream &Os) const
Print description of object. 
 
This class calculates a cost function, along with a jacobian. 
 
Contains classes to abstract away details in various Spurr Radiative Transfer software. 
 
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.