COFDetector<T>

Models & Types · AiDotNet.AnomalyDetection.DistanceBased

Detects anomalies using Connectivity-Based Outlier Factor (COF).

Inheritance: ModelBase<T, Matrix<T>, Vector<T>> → AnomalyDetectorBase<T> → COFDetector<T>

Implements: IGeneratedParameterRegistrar<T>

For Beginners

COF improves on LOF by considering the connectivity pattern of a point’s neighborhood. It detects outliers that are connected differently from their neighbors (e.g., points in low-density corridors).

Constructors

Constructor Summary
COFDetector(int k, double contamination, int randomSeed) Creates a new COF anomaly detector.

Properties

Property Summary
int K { get; } Gets the number of neighbors used for detection.

Methods

Method Summary
Vector<T> ScoreAnomalies(Matrix<T> X)
void Fit(Matrix<T> X)