GPLIB++
Functions | Variables
mtucorr.cpp File Reference
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include "ShortCorr.h"
#include "convert.h"
#include "WFunc.h"
#include "TimeSeriesData.h"

Go to the source code of this file.

Functions

void CalcCorrAndWrite (ttsdata &Data, ttsdata &Short, ttsdata &Corr, string name)
 Calculate the correlation between the filed component and a spike and write the correlation to a file. More...
 
void FindNextSpike (ttsdata::iterator &currstart, ttsdata &Data, ttsdata &Spike, const int trailpoints, const int decaypoints, const double diffthreshold)
 Find the next spike by examining the first difference. More...
 
double RemoveSpike (ttsdata &Data, ttsdata &Spike, const double corrthreshold, const int minspikeavg, string outname, const size_t iteration)
 Remove spikes with the given form from the time-series. More...
 
int main (int argc, char *argv[])
 The program mtucorr tries to identify spikes in the electric field of MT time-series data and remove them. More...
 

Variables

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

Function Documentation

void CalcCorrAndWrite ( ttsdata &  Data,
ttsdata &  Short,
ttsdata &  Corr,
string  name 
)

Calculate the correlation between the filed component and a spike and write the correlation to a file.

Definition at line 16 of file mtucorr.cpp.

References gplib::ShortCorr().

Referenced by RemoveSpike().

void FindNextSpike ( ttsdata::iterator &  currstart,
ttsdata &  Data,
ttsdata &  Spike,
const int  trailpoints,
const int  decaypoints,
const double  diffthreshold 
)

Find the next spike by examining the first difference.

Definition at line 25 of file mtucorr.cpp.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)
double RemoveSpike ( ttsdata &  Data,
ttsdata &  Spike,
const double  corrthreshold,
const int  minspikeavg,
string  outname,
const size_t  iteration 
)

Remove spikes with the given form from the time-series.

Definition at line 50 of file mtucorr.cpp.

References CalcCorrAndWrite(), and gplib::SubMean().

Referenced by main().

Variable Documentation

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

Definition at line 13 of file mtucorr.cpp.

Referenced by main().