detect_regression_with_cpd

Function detect_regression_with_cpd 

Source
pub fn detect_regression_with_cpd(
    current: &BenchResult,
    historical: &[BaselineData],
    threshold: f64,
    confidence_level: f64,
    cp_threshold: f64,
    hazard_rate: f64,
) -> ComparisonResult
Expand description

Detect regression using statistical window + Bayesian Change Point Detection

This function combines three criteria for robust regression detection:

  1. Statistical significance (outside confidence interval)
  2. Practical significance (exceeds threshold percentage)
  3. Change point probability (likely distribution shift)

All three conditions must be met for a regression to be flagged.