mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 20:44:14 +02:00
fix SimpleMovingAverage::reset()
This commit is contained in:
parent
e9684c0ee5
commit
9411519dc9
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ int SimpleMovingAverage::updateAverage(float sample) {
|
|||
|
||||
void SimpleMovingAverage::reset() {
|
||||
_numSamples = 0;
|
||||
_average = 0;
|
||||
_eventDeltaAverage = 0;
|
||||
}
|
||||
|
||||
float SimpleMovingAverage::getEventDeltaAverage() const {
|
||||
|
|
Loading…
Reference in a new issue