Class ADWIN
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.core.driftdetection.ADWIN
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class ADWIN extends AbstractMOAObject
ADaptive sliding WINdow method. This method is a change detector and estimator. It keeps a variable-length window of recently seen items, with the property that the window has the maximal length statistically consistent with the hypothesis "there has been no change in the average value inside the window".- Version:
- $Revision: 7 $
- Author:
- Albert Bifet (abifet at cs dot waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static double
DELTA
static int
MAXBUCKETS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
compressBuckets()
int
deleteElement()
int
getBucketsUsed()
boolean
getChange()
int
getClock()
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.boolean
getDetect()
double
getEstimation()
String
getEstimatorInfo()
int
getNumberDetections()
double
getTotal()
double
getVariance()
boolean
getWarning()
int
getWidth()
double
getWidthT()
void
resetChange()
void
setClock(int intClock)
boolean
setInput(double intEntrada)
boolean
setInput(double intEntrada, double delta)
void
setW(int W0)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
DELTA
public static final double DELTA
- See Also:
- Constant Field Values
-
MAXBUCKETS
public static final int MAXBUCKETS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChange
public boolean getChange()
-
resetChange
public void resetChange()
-
getBucketsUsed
public int getBucketsUsed()
-
getWidth
public int getWidth()
-
setClock
public void setClock(int intClock)
-
getClock
public int getClock()
-
getWarning
public boolean getWarning()
-
getDetect
public boolean getDetect()
-
getNumberDetections
public int getNumberDetections()
-
getTotal
public double getTotal()
-
getEstimation
public double getEstimation()
-
getVariance
public double getVariance()
-
getWidthT
public double getWidthT()
-
deleteElement
public int deleteElement()
-
compressBuckets
public void compressBuckets()
-
setInput
public boolean setInput(double intEntrada)
-
setInput
public boolean setInput(double intEntrada, double delta)
-
getEstimatorInfo
public String getEstimatorInfo()
-
setW
public void setW(int W0)
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-