Package adams.data.spc
Class MOAPageHinkley
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,TechnicalInformationHandler,ControlChart,IndividualsControlChart,Serializable
public class MOAPageHinkley extends AbstractControlChart implements IndividualsControlChart
Page-Hinkley Test.
This version is based on MOA's drift detector:
https://github.com/apache/incubator-samoa/blob/9b178f63152e5b4c262e0f3ed28e77667832fc98/samoa-api/src/main/java/org/apache/samoa/moa/classifiers/core/driftdetection/PageHinkleyDM.java
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-min-num-values <int> (property: minNumValues) The minimum number of values to process before testing. default: 30 minimum: 1
-delta <double> (property: delta) The delta parameter. default: 0.05 minimum: 0.0
-lambda <double> (property: lambda) The threshold for the test. default: 4.0 minimum: 0.0
-alpha <double> (property: alpha) The alpha parameter for the test. default: 0.99 minimum: 0.0 maximum: 1.0
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected doublem_Alphathe alpha parameter.protected doublem_Deltathe delta parameter.protected doublem_Lambdathe lambda parameter.protected intm_MinNumValuesthe minimum number of values before testing.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description MOAPageHinkley()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringalphaTipText()Returns the tip text for this property.List<Limits>calculate(Number[] data)Calculates center/lower/upper limit.voiddefineOptions()Adds options to the internal list of options.StringdeltaTipText()Returns the tip text for this property.doublegetAlpha()Returns the alpha parameter for the test.doublegetDelta()Returns the delta parameter.doublegetLambda()Returns the threshold for the test.intgetMinNumValues()Returns the minimum number of values to process before testing.StringgetName()Returns the chart name.TechnicalInformationgetTechnicalInformation()Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.StringglobalInfo()Returns a string describing the object.StringlambdaTipText()Returns the tip text for this property.StringminNumValuesTipText()Returns the tip text for this property.double[]prepare(Number[] data)Prepares the data.voidsetAlpha(double value)Sets the alpha parameter for the test.voidsetDelta(double value)Sets the delta parameter.voidsetLambda(double value)Sets the threshold for the test.voidsetMinNumValues(int value)Sets the minimum number of values to process before testing.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getTechnicalInformation
public TechnicalInformation getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Specified by:
getTechnicalInformationin interfaceTechnicalInformationHandler- Returns:
- the technical information about this class
-
getName
public String getName()
Returns the chart name.- Specified by:
getNamein interfaceControlChart- Returns:
- the chart name
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setMinNumValues
public void setMinNumValues(int value)
Sets the minimum number of values to process before testing.- Parameters:
value- the number of values
-
getMinNumValues
public int getMinNumValues()
Returns the minimum number of values to process before testing.- Returns:
- the number of values
-
minNumValuesTipText
public String minNumValuesTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setDelta
public void setDelta(double value)
Sets the delta parameter.- Parameters:
value- the delta
-
getDelta
public double getDelta()
Returns the delta parameter.- Returns:
- the delta
-
deltaTipText
public String deltaTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setLambda
public void setLambda(double value)
Sets the threshold for the test.- Parameters:
value- the threshold
-
getLambda
public double getLambda()
Returns the threshold for the test.- Returns:
- the threshold
-
lambdaTipText
public String lambdaTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setAlpha
public void setAlpha(double value)
Sets the alpha parameter for the test.- Parameters:
value- the alpha parameter
-
getAlpha
public double getAlpha()
Returns the alpha parameter for the test.- Returns:
- the alpha parameter
-
alphaTipText
public String alphaTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
calculate
public List<Limits> calculate(Number[] data)
Calculates center/lower/upper limit.- Specified by:
calculatein interfaceIndividualsControlChart- Parameters:
data- the data to use for the calculation- Returns:
- center/lower/upper
-
prepare
public double[] prepare(Number[] data)
Prepares the data.- Specified by:
preparein interfaceIndividualsControlChart- Parameters:
data- the data to prepare- Returns:
- the prepared/processed data
-
-