@ Override public double calculateAnomalyScore ( double value ) { double zScore = ( value - mean ) / Math . sqrt ( variance ) ; //Taking absolute value for a more human-readable anomaly score return Math . abs ( zScore ) ; }
Calculates the z - score of the data point which measures how many standard deviations the data point is away from the mean .