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 noiselevel, boost::lagged_fibonacci607 &generator)
int main (int argc, char *argv[])

Variables

string version = "$Id: addnoise.cpp 1706 2008-06-06 07:14:04Z 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  noiselevel,
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 1706 2008-06-06 07:14:04Z mmoorkamp $"

Definition at line 21 of file addnoise.cpp.


Generated on Fri Jul 4 15:30:21 2008 for GPLIB++ by  doxygen 1.5.5