AnomalyConfig class

Configuration options for anomaly detection algorithms.

Constructors

AnomalyConfig({double threshold = 3.0, int minPoints = 5, String distanceType = 'euclidean', bool verbose = false, int? maxAnomalies})
Constructor with default values suitable for most algorithms.
const

Properties

distanceType String
Type of distance metric to use (e.g., 'euclidean', 'manhattan', 'cosine').
final
hashCode int
The hash code for this object.
no setterinherited
maxAnomalies int?
Optional maximum anomaly count (used in some use-cases).
final
minPoints int
Minimum number of neighbors, used in algorithms like LOF.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threshold double
Threshold value used for algorithms like Z-Score.
final
verbose bool
Optional flag to enable debug logging or detailed output.
final

Methods

copyWith({double? threshold, int? minPoints, String? distanceType, bool? verbose, int? maxAnomalies}) AnomalyConfig
Creates a copy with updated values (useful for modifications).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited