#pragma once /// /// Simple storage class that keeps the outlier score, core distance, and id (index) for a single /// point. OutlierScores are sorted in ascending order by outlier score, with core distances used to /// break outlier score ties, and ids used to break core distance ties. /// class outlierScore { private: double coreDistance; public: double score; int id; /// /// Creates a new OutlierScore for a given point. /// /// The outlier score of the point /// The point's core distance /// The id (index) of the point outlierScore(double score, double coreDistance, int id); outlierScore(); /// /// Method Overridden to compare two objects. /// bool operator<(const outlierScore& other) const; };