added moenchT1 data structure

This commit is contained in:
2016-12-15 13:58:55 +01:00
parent d6793a0802
commit 545c5530e3
8 changed files with 267 additions and 4 deletions

View File

@ -25,6 +25,16 @@ class MovingStat
m_newM=0;
m_newM2=0;
}
/**
clears the moving average number of samples parameter, mean and standard deviation
*/
void Set(double val)
{
m_n = n;
m_newM=val*n;
m_newM2=val*val*n;
}
/** sets number of samples parameter