Function behavioral_alignment

Source
pub fn behavioral_alignment(drift_a: &[f32], drift_b: &[f32]) -> f32
Expand description

Behavioral alignment: Pearson correlation between two drift series.

Returns a value in [-1, 1]:

  • 1.0: perfectly correlated drift
  • 0.0: uncorrelated
  • -1.0: perfectly anti-correlated