public abstract class AbstractChangeDetector extends AbstractOptionHandler implements ChangeDetector
Modifier and Type | Field and Description |
---|---|
protected double |
delay
Delay in detecting change
|
protected double |
estimation
Prediction for the next value based in previous seen values
|
protected boolean |
isChangeDetected
Change was detected
|
protected boolean |
isInitialized
The change detector has been initialized with the option values
|
protected boolean |
isWarningZone
Warning Zone: after a warning and before a change
|
config
Constructor and Description |
---|
AbstractChangeDetector() |
Modifier and Type | Method and Description |
---|---|
ChangeDetector |
copy()
Produces a copy of this change detector method
|
boolean |
getChange()
Gets whether there is change detected.
|
double |
getDelay()
Gets the length of the delay in the change detected.
|
abstract 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.
|
abstract 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.
|
getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse, prepareForUseImpl
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
measureByteSize
protected boolean isChangeDetected
protected boolean isWarningZone
protected double estimation
protected double delay
protected boolean isInitialized
public void resetLearning()
resetLearning
in interface ChangeDetector
public abstract void input(double inputValue)
input
in interface ChangeDetector
inputValue
- the number to insert into the change detectorpublic boolean getChange()
getChange
in interface ChangeDetector
public boolean getWarningZone()
getWarningZone
in interface ChangeDetector
public double getEstimation()
getEstimation
in interface ChangeDetector
public double getDelay()
getDelay
in interface ChangeDetector
public double[] getOutput()
getOutput
in interface ChangeDetector
public abstract void getDescription(StringBuilder sb, int indent)
getDescription
in interface ChangeDetector
getDescription
in interface MOAObject
out
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic ChangeDetector copy()
copy
in interface ChangeDetector
copy
in interface MOAObject
copy
in interface OptionHandler
copy
in class AbstractOptionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.