Overte C++ Documentation
StDev.h
1
//
2
// StDev.h
3
// libraries/shared/src
4
//
5
// Created by Philip Rosedale on 3/12/13.
6
// Copyright 2013 High Fidelity, Inc.
7
//
8
// Distributed under the Apache License, Version 2.0.
9
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10
//
11
12
#ifndef hifi_StDev_h
13
#define hifi_StDev_h
14
15
const
int
NUM_SAMPLES = 1000;
16
17
class
StDev {
18
public
:
19
StDev();
20
void
reset();
21
void
addValue(
float
v);
22
float
getAverage()
const
;
23
float
getStDev()
const
;
24
int
getSamples()
const
{
return
_sampleCount; }
25
private
:
26
float
_data[NUM_SAMPLES];
27
int
_sampleCount;
28
};
29
30
#endif
// hifi_StDev_h
libraries
shared
src
StDev.h
Generated by
1.9.1