ReFRACtor
model_measure_bard.cc
Go to the documentation of this file.
1 #include <model_measure_bard.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=1; i<=measurement_size(); i++)
15  M(i-1) = X(0) + i/((16-i)*X(1) + (8-abs(8-i))*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=1; i<=measurement_size(); i++) {
28  double denom = (16-i)*X(1) + (8-abs(8-i))*X(2);
29  denom = denom*denom;
30  K(i-1,0) = 1.0; K(i-1,1) = -(16-i)*i/denom; K(i-1,2) = -(8-abs(8-i))*i/denom;
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