com.yahoo.egads.models.adm
Class KSigmaModel
- java.lang.Object
-
- com.yahoo.egads.models.adm.AnomalyDetectionAbstractModel
-
- com.yahoo.egads.models.adm.KSigmaModel
-
- All Implemented Interfaces:
- JsonAble, Model, AnomalyDetectionModel, java.io.Serializable
public class KSigmaModel extends AnomalyDetectionAbstractModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description AnomalyErrorStorageaesjava.lang.StringmodelName
-
Constructor Summary
Constructors Constructor and Description KSigmaModel(java.util.Properties config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Anomaly.IntervalSequencedetect(TimeSeries.DataSequence observedSeries, TimeSeries.DataSequence expectedSeries)voidfromJson(JSONObject json_obj)java.lang.StringgetModelName()java.lang.StringgetType()booleanisAnomaly(java.lang.Float[] errors, java.util.Map<java.lang.String,java.lang.Float> threshold)voidreset()voidtoJson(JSONStringer json_out)voidtune(TimeSeries.DataSequence observedSeries, TimeSeries.DataSequence expectedSeries, Anomaly.IntervalSequence anomalySequence)-
Methods inherited from class com.yahoo.egads.models.adm.AnomalyDetectionAbstractModel
getModelType, isDetectionWindowPoint
-
-
-
-
Field Detail
-
modelName
public java.lang.String modelName
-
aes
public AnomalyErrorStorage aes
-
-
Method Detail
-
toJson
public void toJson(JSONStringer json_out)
- Specified by:
toJsonin interfaceJsonAble- Overrides:
toJsonin classAnomalyDetectionAbstractModel
-
fromJson
public void fromJson(JSONObject json_obj)
- Specified by:
fromJsonin interfaceJsonAble- Overrides:
fromJsonin classAnomalyDetectionAbstractModel
-
getModelName
public java.lang.String getModelName()
- Specified by:
getModelNamein interfaceModel- Overrides:
getModelNamein classAnomalyDetectionAbstractModel
-
getType
public java.lang.String getType()
-
reset
public void reset()
-
tune
public void tune(TimeSeries.DataSequence observedSeries, TimeSeries.DataSequence expectedSeries, Anomaly.IntervalSequence anomalySequence) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isAnomaly
public boolean isAnomaly(java.lang.Float[] errors, java.util.Map<java.lang.String,java.lang.Float> threshold)
-
detect
public Anomaly.IntervalSequence detect(TimeSeries.DataSequence observedSeries, TimeSeries.DataSequence expectedSeries) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
DataMelt 3.0 © DataMelt by jWork.ORG