ReFRACtor
|
When we have bad samples, we usually pass this to the spectral window to prevent the sample from even being used. More...
#include <bad_sample_noise_model.h>
Public Member Functions | |
template<class T > | |
BadSampleNoiseModel (const boost::shared_ptr< NoiseModel > &Underlying_noise_model, const blitz::Array< T, 2 > &Bad_sample_mask, double Bad_sample_uncer) | |
const blitz::Array< bool, 2 > & | bad_sample_mask () const |
double | bad_sample_uncertainty () const |
virtual void | print (std::ostream &Os) const |
Print description of object. More... | |
std::string | print_to_string () const |
Print to string. More... | |
virtual blitz::Array< double, 1 > | uncertainty (int Spec_index, const blitz::Array< double, 1 > &Radiance) const |
Calculate uncertainty, using underlying model except where we have bad samples, where we set this to a fixed value. More... | |
const boost::shared_ptr< NoiseModel > & | underlying_noise_model () const |
When we have bad samples, we usually pass this to the spectral window to prevent the sample from even being used.
However, it can be useful to instead include the bad sample but give it a really large noise value (e.g., you want the residual calculated for a ARP investigation, but don't want it to have any weight in the retrieval). This adapter class takes a underlying noise model, but changes the uncertainty for any value that is marked as a bad sample.
Definition at line 16 of file bad_sample_noise_model.h.
|
inline |
Definition at line 19 of file bad_sample_noise_model.h.
|
inline |
Definition at line 38 of file bad_sample_noise_model.h.
|
inline |
Definition at line 35 of file bad_sample_noise_model.h.
|
virtual |
Print description of object.
Reimplemented from FullPhysics::NoiseModel.
Definition at line 32 of file bad_sample_noise_model.cc.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
|
virtual |
Calculate uncertainty, using underlying model except where we have bad samples, where we set this to a fixed value.
Implements FullPhysics::NoiseModel.
Definition at line 22 of file bad_sample_noise_model.cc.
|
inline |
Definition at line 36 of file bad_sample_noise_model.h.