improved readNextFrame for moench 10G streaming; implemented many photons finder

This commit is contained in:
2017-05-30 12:21:48 +02:00
parent 73ec3903bf
commit 5dbfbdb82b
9 changed files with 524 additions and 235 deletions

View File

@@ -29,11 +29,14 @@ class MovingStat
/**
clears the moving average number of samples parameter, mean and standard deviation
*/
void Set(double val)
void Set(double val, double rms=0)
{
m_n = n;
m_newM=val*n;
m_newM2=val*val*n;
if (rms<=0)
m_newM2=val*val*n;
else
m_newM2=(n*rms*rms+m_newM*m_newM/n);
}