GPLIB++
Functions | Variables
addnoise.cpp File Reference
#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 $"
 

Detailed Description

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 addnoise.cpp.

Function Documentation

void AddNoise ( std::complex< double > &  impelement,
double &  noiseest,
const double  relativenoiselevel,
const double  absolutenoiselevel,
boost::lagged_fibonacci607 &  generator 
)

Definition at line 24 of file addnoise.cpp.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

string version = "$Id: addnoise.cpp 1844 2010-04-12 11:34:25Z mmoorkamp $"

Definition at line 22 of file addnoise.cpp.

Referenced by main().