Imported from https://github.com/natasasdj/anomalyDetection
