ReFRACtor
|
The calculation of the phase function scattering matrix moments is fairly expensive. More...
#include <scattering_moment_interpolator.h>
Public Member Functions | |
ScatteringMomentInterpolate2Point (double Wn1, const blitz::Array< double, 2 > &Pf_mom1, double Wn2, const blitz::Array< double, 2 > &Pf_mom2) | |
Constructor, this takes the two wave numbers and scattering matrices to interpolate. More... | |
blitz::Array< double, 2 > | operator() (double wn, int nummom=-1, int numscat=-1) const |
Interpolate the data to give the phase function scattering moments for the given wave number. More... | |
The calculation of the phase function scattering matrix moments is fairly expensive.
As an optimization, we interpolate between full calculated points to get the points in between. This class handles this interpolation.
Normally, you don't directly use this class. Instead, Atmosphere uses this class to speed up its calculations.
Definition at line 18 of file scattering_moment_interpolator.h.
|
inline |
Constructor, this takes the two wave numbers and scattering matrices to interpolate.
Definition at line 24 of file scattering_moment_interpolator.h.
|
inline |
Interpolate the data to give the phase function scattering moments for the given wave number.
You can optionally specify the number of moments and scattering matrix elements to return, the default is to return all of them. This returns a matrix that is number_moment + 1 x number scattering elements in size.
Definition at line 42 of file scattering_moment_interpolator.h.