mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-15 19:27:21 +02:00
25 lines
438 B
C++
25 lines
438 B
C++
//
|
|
// StdDev.h
|
|
// hifi
|
|
//
|
|
// Created by Philip Rosedale on 3/12/13.
|
|
//
|
|
//
|
|
|
|
#ifndef __hifi__StdDev__
|
|
#define __hifi__StdDev__
|
|
|
|
class StDev {
|
|
public:
|
|
StDev();
|
|
void reset();
|
|
void addValue(float v);
|
|
float getAverage();
|
|
float getStDev();
|
|
int getSamples() const { return sampleCount; }
|
|
private:
|
|
float * data;
|
|
int sampleCount;
|
|
};
|
|
|
|
#endif /* defined(__hifi__StdDev__) */
|