GPLIB++
Public Member Functions | List of all members
gplib::MTSampleGenerator Class Reference

Generate random elements of a calculated quantity for MT impedance data. More...

#include <MTSampleGenerator.h>

Public Member Functions

 MTSampleGenerator (boost::function< double(const MTTensor *)> f, const MTTensor &Z, const double errorlevel=0.0)
 The constructor needs a pointer to a member function of MTTensor that returns a double, an impedance element and an errolevel for all elements. More...
 
double operator() ()
 each call to operator() returns a new random sample More...
 
virtual ~MTSampleGenerator ()
 

Detailed Description

Generate random elements of a calculated quantity for MT impedance data.

This class is used for error analysis of MT data using the Bootstrap or Jacknife method. The constructor takes a pointer to a member function of MTTensor f, a Tensor element Z and an errorlevel and generates random samples f(Z) within the errorlevel for the impedance. Each call to operator() yields a new sample

Definition at line 22 of file MTSampleGenerator.h.

Constructor & Destructor Documentation

gplib::MTSampleGenerator::MTSampleGenerator ( boost::function< double(const MTTensor *)>  f,
const MTTensor Z,
const double  errorlevel = 0.0 
)

The constructor needs a pointer to a member function of MTTensor that returns a double, an impedance element and an errolevel for all elements.

For example MTSampleGenerator(&MTTensor::GetRhoxy,DistData) creates a distribution of Zxy apparent resistivity values that is purely based on the impedance errors in DistData, if an errorlevel was specified this would be the error floor.

Definition at line 9 of file MTSampleGenerator.cpp.

gplib::MTSampleGenerator::~MTSampleGenerator ( )
virtual

Definition at line 30 of file MTSampleGenerator.cpp.

Member Function Documentation

double gplib::MTSampleGenerator::operator() ( )

each call to operator() returns a new random sample

Definition at line 34 of file MTSampleGenerator.cpp.

References gplib::MTTensor::GetFrequency().


The documentation for this class was generated from the following files: