Interface ChangeDetector
-
- All Superinterfaces:
Configurable
,MOAObject
,OptionHandler
,Serializable
- All Known Implementing Classes:
AbstractChangeDetector
,ADWINChangeDetector
,CusumDM
,DDM
,EDDM
,EnsembleDriftDetectionMethods
,EWMAChartDM
,GeometricMovingAverageDM
,HDDM_A_Test
,HDDM_W_Test
,NoChangeDetection
,PageHinkleyDM
,RDDM
,SEEDChangeDetector
,SeqDrift1ChangeDetector
,SeqDrift2ChangeDetector
,STEPD
public interface ChangeDetector extends OptionHandler
Change Detector interface to implement methods that detects change.- Version:
- $Revision: 7 $
- Author:
- Albert Bifet (abifet at cs dot waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeDetector
copy()
Produces a copy of this drift detection methodboolean
getChange()
Gets whether there is change detected.double
getDelay()
Gets the length of the delay in the change detected.void
getDescription(StringBuilder sb, int indent)
Returns a string representation of the model.double
getEstimation()
Gets the prediction of next values.double[]
getOutput()
Gets the output state of the change detection.boolean
getWarningZone()
Gets whether the change detector is in the warning zone, after a warning alert and before a change alert.void
input(double inputValue)
Adding a numeric value to the change detector
The output of the change detector is modified after the insertion of a new item inside.void
resetLearning()
Resets this change detector.-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Method Detail
-
resetLearning
void resetLearning()
Resets this change detector. It must be similar to starting a new change detector from scratch.
-
input
void input(double inputValue)
Adding a numeric value to the change detector
The output of the change detector is modified after the insertion of a new item inside.- Parameters:
inputValue
- the number to insert into the change detector
-
getChange
boolean getChange()
Gets whether there is change detected.- Returns:
- true if there is change
-
getWarningZone
boolean getWarningZone()
Gets whether the change detector is in the warning zone, after a warning alert and before a change alert.- Returns:
- true if the change detector is in the warning zone
-
getEstimation
double getEstimation()
Gets the prediction of next values.- Returns:
- a prediction of the next value
-
getDelay
double getDelay()
Gets the length of the delay in the change detected.- Returns:
- he length of the delay in the change detected
-
getOutput
double[] getOutput()
Gets the output state of the change detection.- Returns:
- an array with the number of change detections, number of warnings, delay, and estimation.
-
getDescription
void getDescription(StringBuilder sb, int indent)
Returns a string representation of the model.- Specified by:
getDescription
in interfaceMOAObject
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
copy
ChangeDetector copy()
Produces a copy of this drift detection method- Specified by:
copy
in interfaceMOAObject
- Specified by:
copy
in interfaceOptionHandler
- Returns:
- the copy of this drift detection method
-
-