6 #include <boost/function.hpp> 
   10 using namespace gplib;
 
   21     boost::function<
double (
const MTTensor*)> 
f)
 
   24     const int errorcases = 10000;
 
   25     const double errorfloor = 0.02;
 
   26     double JackMean, JackErr;
 
   27     ofstream muoutfile(filename.c_str());
 
   29     for (
size_t i = 0; i < Data.
GetMTData().size(); ++i)
 
   34         ErrEst.CalcErrors(JackMean, JackErr);
 
   36         muoutfile << 1. / Data.
GetMTData().at(i).GetFrequency();
 
   37         muoutfile << 
" " << 
f(&Data.
GetMTData().at(i)) << 
" " << sqrt(JackErr)
 
   42 int main(
int argc, 
char *argv[])
 
   53         infilename = AskFilename(
"Infilename: ");
 
   71     ofstream muoutfile((infilename + 
".d2").c_str());
 
   72     for (
size_t i = 0; i < Data.
GetMTData().size(); ++i)
 
   74         muoutfile << 1. / Data.
GetMTData().at(i).GetFrequency();
 
   75         muoutfile << 
" " << 2 * Data.
GetMTData().at(i).GetdBerd()
 
void f(vector< double > &v1, vector< double > &v2, vector< double > &v3, vector< double > &v4)
 
virtual void GetData(const std::string filename)
read in data from file, determines format by ending 
 
The class MTStation is used to store the transfer functions and related information for a MT-site...
 
Implements the Jacknifing method of error estimation. 
 
Generate random elements of a calculated quantity for MT impedance data. 
 
Stores MT-Tensor components at a single frequency, calculates derived quantities. ...
 
const std::vector< MTTensor > & GetMTData() const 
Get the full vector of Tensor elements read only. 
 
void WriteParameterToFile(const MTStation &Data, const string &filename, boost::function< double(const MTTensor *)> f)
This helper function calculates the errors for a single parameter and writes the values to a file in ...