An algorithm for result accuracy detection. More...
#include <cdetect.h>
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 cADByStddev * | 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) |
An algorithm for result accuracy detection.
The actual algorithm: divide the standard deviation by the square of the number of values and check if this is small enough.
virtual cADByStddev* cADByStddev::dup | ( | ) | const [inline, virtual] |
Dupping is not implemented for this class.
This function gives an error (throws cRuntimeError) when called.
Reimplemented from cAccuracyDetection.
cADByStddev& cADByStddev::operator= | ( | const cADByStddev & | res | ) |
Assignment operator.
The name member is not copied; see cOwnedObject's operator=() for more details.