MTSampleGenerator Class Reference
[Statistical methods]

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

#include <MTSampleGenerator.h>

List of all members.

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.
double operator() ()
 each call to operator() returns a new random sample
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 19 of file MTSampleGenerator.h.


Constructor & Destructor Documentation

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 6 of file MTSampleGenerator.cpp.

MTSampleGenerator::~MTSampleGenerator (  )  [virtual]

Definition at line 30 of file MTSampleGenerator.cpp.


Member Function Documentation

double MTSampleGenerator::operator() (  ) 

each call to operator() returns a new random sample

Definition at line 34 of file MTSampleGenerator.cpp.

References MTTensor::GetFrequency().


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

Generated on Tue Aug 4 16:04:20 2009 for GPLIB++ by  doxygen 1.5.8