Represents a single anomaly detected by AnomalyDetectionModel: the time interval where the actual values diverged from the predicted ones. Carries the observed and expected values at that point plus an anomaly score, and is returned from anomalies() and topAnomalies().
Properties
| Property | Returns | Description |
|---|---|---|
| actual | double | Observed actual value at this anomaly, taken directly from the input time series. |
| endDate | Date | End of the anomaly interval, as reported by EGADS' change point detector. |
| expected | double | Value the trained model predicted for this point, against which the actual value is compared. |
| score | double | Anomaly score assigned by EGADS' change point detector. |
| startDate | Date | Start of the anomaly interval, as reported by EGADS' change point detector. |
Methods
getActual()
Returns: double
Observed actual value at this anomaly, taken directly from the input time series.
getEndDate()
Returns: Date
End of the anomaly interval, as reported by EGADS' change point detector.
getExpected()
Returns: double
Value the trained model predicted for this point, against which the actual value is compared.
getScore()
Returns: double
Anomaly score assigned by EGADS' change point detector.
getStartDate()
Returns: Date
Start of the anomaly interval, as reported by EGADS' change point detector.