Metric-vs-metric correlation and divergence analysis for the viser
video-encoding-optimizer workspace.
Where [viser_quality] computes each metric, this crate compares the
metrics against each other: how strongly PSNR, SSIM, VMAF, SSIMULACRA2 and
butteraugli agree on the same content — via Pearson, Spearman (SROCC) and
Kendall tau-b (KROCC) — and which samples they most disagree about
(divergence detection).
A "sample" is whatever the aligned series share: per-frame scores within one
clip, or one aggregate score per encode across a ladder. The core functions
are metric-agnostic and operate on &[f64]; [series_from_frames] is a
convenience bridge from [viser_quality::FrameResult].
use ;
let series = vec!;
let m = correlation_matrix;
assert!; // perfectly monotonic