mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 01:28:11 +02:00
27 lines
452 B
C++
27 lines
452 B
C++
//
|
|
// StdDev.h
|
|
// hifi
|
|
//
|
|
// Created by Philip Rosedale on 3/12/13.
|
|
//
|
|
//
|
|
|
|
#ifndef __hifi__StdDev__
|
|
#define __hifi__StdDev__
|
|
|
|
#include <iostream>
|
|
|
|
class StDev {
|
|
public:
|
|
StDev();
|
|
void reset();
|
|
void addValue(float v);
|
|
float getAverage();
|
|
float getStDev();
|
|
int getSamples() {return sampleCount;};
|
|
private:
|
|
float * data;
|
|
int sampleCount;
|
|
};
|
|
|
|
#endif /* defined(__hifi__StdDev__) */
|