mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 08:09:21 +01:00
added general class to detect photons
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorCalibration@11 113b152e-814d-439b-b186-022a431db7b5
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
class MovingStat
|
||||
#ifndef MOVINGSTAT_H
|
||||
#define MOVINGSTAT_H
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
||||
class MovingStat
|
||||
{
|
||||
public:
|
||||
MovingStat() : m_n(0), n(1000) {}
|
||||
MovingStat() : n(1000), m_n(0) {}
|
||||
|
||||
void Clear()
|
||||
{
|
||||
@@ -86,3 +92,4 @@
|
||||
int m_n;
|
||||
double m_oldM, m_newM, m_oldM2, m_newM2;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user