Class AnomalinessRatioScore
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.rules.core.anomalydetection.AbstractAnomalyDetector
-
- moa.classifiers.rules.core.anomalydetection.AnomalinessRatioScore
-
- All Implemented Interfaces:
Configurable
,Serializable
,AnomalyDetector
,MOAObject
,OptionHandler
public class AnomalinessRatioScore extends AbstractAnomalyDetector
Score for anomaly detection percentageAnomalousAttributesOption - Percentage of anomalous attributes. univariateAnomalyprobabilityThresholdOption - Univariate anomaly threshold value minNumberInstancesOption - The minimum number of instances required to perform anomaly detection probabilityFunctionOption - Probability function selection- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description double
anomalyScore
IntOption
minNumberInstancesOption
FloatOption
percentageAnomalousAttributesOption
ClassOption
probabilityFunctionOption
FloatOption
univariateAnomalyprobabilityThresholdOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description AnomalinessRatioScore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAnomalyScore()
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.protected void
prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.boolean
updateAndCheckAnomalyDetection(MultiLabelInstance instance)
Adding an instance to the anomaly detector-
Methods inherited from class moa.classifiers.rules.core.anomalydetection.AbstractAnomalyDetector
copy
-
Methods inherited from class moa.options.AbstractOptionHandler
getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Field Detail
-
percentageAnomalousAttributesOption
public FloatOption percentageAnomalousAttributesOption
-
univariateAnomalyprobabilityThresholdOption
public FloatOption univariateAnomalyprobabilityThresholdOption
-
minNumberInstancesOption
public IntOption minNumberInstancesOption
-
probabilityFunctionOption
public ClassOption probabilityFunctionOption
-
anomalyScore
public double anomalyScore
-
-
Method Detail
-
getAnomalyScore
public double getAnomalyScore()
-
updateAndCheckAnomalyDetection
public boolean updateAndCheckAnomalyDetection(MultiLabelInstance instance)
Description copied from interface:AnomalyDetector
Adding an instance to the anomaly detector- Specified by:
updateAndCheckAnomalyDetection
in interfaceAnomalyDetector
- Specified by:
updateAndCheckAnomalyDetection
in classAbstractAnomalyDetector
- Returns:
- true if anomaly is detected and false otherwise
-
prepareForUseImpl
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractOptionHandler
This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implementprepareForUseImpl
and notprepareForUse
sinceprepareForUse
callsprepareForUseImpl
.- Specified by:
prepareForUseImpl
in classAbstractOptionHandler
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
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
-
-