summaryrefslogtreecommitdiffstats
path: root/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzer.h
blob: 11b5b1f147fcc87cdfcf5dc35b1ccb72c0137164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * WaveAnalyzer.h
 *
 *  Created on: 02.04.2011
 *      Author: sven
 */

#ifndef WAVEANALYZER_H_
#define WAVEANALYZER_H_

#ifndef _GLIBCXX_STRING
	#include <string>
#endif

typedef unsigned long UInt32;

struct statVal
{
	UInt32 count;
	long double p;
};

class WaveAnalyzer {
public:
	WaveAnalyzer();
	virtual ~WaveAnalyzer();
	long double calcSNR(std::string&, std::string&);
	long double calcArithAvg(std::string&);
	long double calcVariance(std::string&);
	long double calcStdDeviation(std::string&);
};

#endif /* WAVEANALYZER_H_ */