class runningMean

This is the abstract running mean parent class.

Inheritance:


Public Methods

[more]virtual double getMean(const int ich) const
the getMean(i) funtion returns the current mean value of channel i
[more]virtual int Reset()
Reset will reset the mean values (not the references)
[more]virtual int Add(const int iarr[])
Add will add a new list of readings.


Documentation

This is the abstract running mean parent class.

We have two different running mean classes derive from it, a "real" (mathematically correct) running mean value, and a "pseudo" value of the running mean, which is a lot more efficient and fully adequate for most monitoring purposes.

These classes are meant to monitor lots of values (such as all channels of a given detector) simultaneously; In the constructor you specify the "width" (how many channels) and the depth of the running mean.

This class is meant to be lightweight, so there is not much in the way of bounds checking of the input data going on.

ovirtual double getMean(const int ich) const
the getMean(i) funtion returns the current mean value of channel i

ovirtual int Reset()
Reset will reset the mean values (not the references)

ovirtual int Add(const int iarr[])
Add will add a new list of readings. It is your responsibility to provide an approriate array of readings. (Typically you can get the array of int's from the Packet object's fillIntArray function).


Direct child classes:
pseudoRunningMean
fullRunningMean

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.