UnivariateLastDetectionResult Class
- java.
lang. Object - com.
azure. ai. anomalydetector. models. UnivariateLastDetectionResult
- com.
public final class UnivariateLastDetectionResult
The response of last anomaly detection.
Method Summary
Modifier and Type | Method and Description |
---|---|
double |
getExpectedValue()
Get the expected |
double |
getLowerMargin()
Get the lower |
int |
getPeriod()
Get the period property: Frequency extracted from the series, zero means no recurrent pattern has been found. |
Double |
getSeverity()
Get the severity property: The severity score for the last input point. |
int |
getSuggestedWindow()
Get the suggested |
double |
getUpperMargin()
Get the upper |
boolean |
isAnomaly()
Get the is |
boolean |
isNegativeAnomaly()
Get the is |
boolean |
isPositiveAnomaly()
Get the is |
Methods inherited from java.lang.Object
Method Details
getExpectedValue
public double getExpectedValue()
Get the expectedValue property: Expected value of the latest point.
Returns:
getLowerMargin
public double getLowerMargin()
Get the lowerMargin property: Lower margin of the latest point. LowerMargin is used to calculate lowerBoundary, which equals to expectedValue - (100 - marginScale)*lowerMargin.
Returns:
getPeriod
public int getPeriod()
Get the period property: Frequency extracted from the series, zero means no recurrent pattern has been found.
Returns:
getSeverity
public Double getSeverity()
Get the severity property: The severity score for the last input point. The larger the value is, the more sever the anomaly is. For normal points, the "severity" is always 0.
Returns:
getSuggestedWindow
public int getSuggestedWindow()
Get the suggestedWindow property: Suggested input series points needed for detecting the latest point.
Returns:
getUpperMargin
public double getUpperMargin()
Get the upperMargin property: Upper margin of the latest point. UpperMargin is used to calculate upperBoundary, which equals to expectedValue + (100 - marginScale)*upperMargin. If the value of latest point is between upperBoundary and lowerBoundary, it should be treated as normal value. By adjusting marginScale value, anomaly status of latest point can be changed.
Returns:
isAnomaly
public boolean isAnomaly()
Get the isAnomaly property: Anomaly status of the latest point, true means the latest point is an anomaly either in negative direction or positive direction.
Returns:
isNegativeAnomaly
public boolean isNegativeAnomaly()
Get the isNegativeAnomaly property: Anomaly status in negative direction of the latest point. True means the latest point is an anomaly and its real value is smaller than the expected one.
Returns:
isPositiveAnomaly
public boolean isPositiveAnomaly()
Get the isPositiveAnomaly property: Anomaly status in positive direction of the latest point. True means the latest point is an anomaly and its real value is larger than the expected one.
Returns:
Applies to
Azure SDK for Java