addnoise.cpp File Reference

#include <iostream>
#include <complex>
#include <ctime>
#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 1816 2009-09-07 11:28:35Z 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 23 of file addnoise.cpp.

Referenced by main().

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


Variable Documentation

string version = "$Id: addnoise.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $"

Definition at line 21 of file addnoise.cpp.


Generated on Tue Nov 3 13:24:14 2009 for GPLIB++ by  doxygen 1.5.8