GPLIB++
|
#include <iostream>
#include <complex>
#include <ctime>
#include <cmath>
#include "MTStation.h"
#include "Util.h"
#include <boost/random/lagged_fibonacci.hpp>
#include <boost/random/normal_distribution.hpp>
#include <boost/random/variate_generator.hpp>
Go to the source code of this file.
Functions | |
void | AddNoise (std::complex< double > &impelement, double &noiseest, const double relativenoiselevel, const double absolutenoiselevel, boost::lagged_fibonacci607 &generator) |
int | main (int argc, char *argv[]) |
Variables | |
string | version = "$Id: addnoise.cpp 1844 2010-04-12 11:34:25Z mmoorkamp $" |
This program adds gaussian random noise to the impedance estimates taken from infilename and writes a new ".mtt" file with the noisy data and updated error information. The output file has the same name as the input file with ".ns" appended. The noise level is the relative noise for real and imaginary parts of the impedance at each frequency.
Definition in file shiftmt.cpp.
void AddNoise | ( | std::complex< double > & | impelement, |
double & | noiseest, | ||
const double | relativenoiselevel, | ||
const double | absolutenoiselevel, | ||
boost::lagged_fibonacci607 & | generator | ||
) |
Definition at line 24 of file shiftmt.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 49 of file shiftmt.cpp.
References gplib::MTStation::GetData(), gplib::MTStation::GetFrequencies(), gplib::MTStation::GetMTData(), gplib::MTStation::SetMTData(), version, and gplib::MTStation::WriteAsMtt().
string version = "$Id: addnoise.cpp 1844 2010-04-12 11:34:25Z mmoorkamp $" |
Definition at line 22 of file shiftmt.cpp.
Referenced by main().