ReFRACtor
model_measure_meyer.cc
Go to the documentation of this file.
1 #include <model_measure_meyer.h>
2 
3 
4 using namespace FullPhysics;
5 using namespace blitz;
6 
7 
9 {
10  if(M.size() <= 0) {
11  assert_parameter_set_correctly();
12  M.resize(measurement_size());
13 
14  for(int i=0; i<measurement_size(); i++)
15  M(i) = X(0) * exp( X(1)/((45.0 + 5.0*(i+1))+X(2)) );
16  }
17 }
18 
19 
20 
22 {
23  if(K.size() <= 0) {
24  assert_parameter_set_correctly();
25  K.resize(measurement_size(), expected_parameter_size());
26 
27  for(int i=0; i<measurement_size(); i++) {
28  double t = (45.0 + 5.0*(i+1));
29  double expf = exp( X(1)/(t+X(2)) );
30  K(i,0) = expf; K(i,1) = X(0)/(t+X(2))*expf; K(i,2) = -X(0)*X(1)/((t+X(2))*(t+X(2)))*expf;
31  }
32  }
33 }
34 
35 
37 {
38  model_eval();
39  jacobian_eval();
40 }
virtual void model_eval()
Evaluates the model at the currently set parameter values.
virtual void jacobian_eval()
Evaluates the Jacobian of the model at the currently set parameter values.
Apply value function to a blitz array.
virtual void model_jacobian_eval()
Evaluates the model and its Jacobian at the currently set parameter values.
const Unit K("K", 1.0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10