Function generate_alerts

Source
pub fn generate_alerts(
    drift_array: &ArrayBase<ViewRepr<&f64>, Dim<[usize; 2]>>,
    features: &[String],
    rule: &SpcAlertRule,
) -> Result<SpcFeatureAlerts, DriftError>
Expand description

Generate alerts for each feature in the drift array

ยงArguments

drift_array - ArrayView2 - The drift array to check for alerts (column order should match feature order) features - Vec - The features to check for alerts (feature order should match drift array column order) alert_rule - AlertRule - The alert rule to check against

Returns a Result<FeatureAlerts, AlertError>