namespace Marathon.Domain.Enums;
/// Semantic classification of anomaly kinds.
public static class AnomalyKindExtensions
{
///
/// Whether the kind makes a directional prediction — a specific side/favourite
/// expected to win — that can be graded against the result and bet on in a backtest.
///
///
/// and are
/// directional (they point at a favourite). is
/// informational — the line did NOT move — so "predicting" the unchanged favourite would
/// merely measure the base favourite-win rate; it is excluded from outcome grading and
/// from backtest staking so it does not distort detector calibration.
///
public static bool IsDirectional(this AnomalyKind kind) => kind switch
{
AnomalyKind.SuspensionFlip => true,
AnomalyKind.SteamMove => true,
AnomalyKind.SuspensionFreeze => false,
AnomalyKind.OverroundCompression => false,
_ => false,
};
}