anomaly_score function

Create anomaly score from input data