Class AnomalyDetector.AnomalyResult
java.lang.Object
com.nmontytskyi.monitoring.detector.AnomalyDetector.AnomalyResult
-
Method Details
-
of
Creates a result with sufficient data available.- Parameters:
zScore- computed Z-score valueanomaly-trueif the value is anomalous
-
insufficient
Returns a result indicating insufficient data for analysis.anomalywill befalse,zScorewill be0.0. -
getZScore
public double getZScore()- Returns:
- Z-score of the current value;
0.0when data is insufficient
-
isAnomaly
public boolean isAnomaly()- Returns:
trueif the value is statistically anomalous
-
hasSufficientData
public boolean hasSufficientData()- Returns:
trueif there was enough data to perform the calculation
-
toString
-