pub fn detect_regression_with_cpd(
current: &BenchResult,
historical: &[BaselineData],
threshold: f64,
confidence_level: f64,
cp_threshold: f64,
hazard_rate: f64,
) -> ComparisonResultExpand description
Detect regression using statistical window + Bayesian Change Point Detection
This function combines three criteria for robust regression detection:
- Statistical significance (outside confidence interval)
- Practical significance (exceeds threshold percentage)
- Change point probability (likely distribution shift)
All three conditions must be met for a regression to be flagged.