#include <cdetect.h>
Inheritance diagram for cADByStddev:
The actual algorithm: divide the standard deviation by the square of the number of values and check if this is small enough.
Public Member Functions | |
Constructors, destructor, assignment. | |
cADByStddev (const cADByStddev &r) | |
cADByStddev (const char *name=NULL, double acc=0.01, int reps=3, PostADFunc f=NULL, void *p=NULL) | |
virtual | ~cADByStddev () |
cADByStddev & | operator= (const cADByStddev &res) |
Redefined cObject member functions. | |
virtual cPolymorphic * | dup () const |
Redefined cAccuracyDetection functions. | |
virtual void | collect (double val) |
virtual bool | detected () const |
virtual void | reset () |
virtual void | stop () |
virtual void | start () |
Setting up the detection object. | |
void | setParameters (double acc=0.1, int reps=3) |
|
Copy constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Updates the detection algorithm with a value.
Implements cAccuracyDetection. |
|
Returns true if required accuracy has been reached.
Implements cAccuracyDetection. |
|
Dupping is not implemented for this class. This function gives an error (throws cRuntimeError) when called. Reimplemented from cObject. |
|
Assignment operator. The name member doesn't get copied; see cObject's operator=() for more details. |
|
Resets detection algorithm.
Implements cAccuracyDetection. |
|
Sets the parameters of the detection algorithm.
|
|
Start detection; further calls to collect() will update the detection algorithm.
Implements cAccuracyDetection. |
|
Stop detection; further calls to collect() will be ignored.
Implements cAccuracyDetection. |