From 0bc9cc314b6e48b075334ce5c72ee191aa6d8127 Mon Sep 17 00:00:00 2001 From: L <457124+liborty@users.noreply.github.com> Date: Thu, 7 Mar 2024 20:45:13 +1000 Subject: [PATCH] 3.0.9 --- src/implementations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/implementations.rs b/src/implementations.rs index 1633a61..1ef1cb3 100644 --- a/src/implementations.rs +++ b/src/implementations.rs @@ -212,8 +212,8 @@ impl<'a, T> Median<'a, T> for &'a [T] { /// use core::cmp::Ordering::*; /// let v1 = vec![1_f64,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,12.,13.,14.]; /// let v2 = vec![14_f64,1.,13.,2.,12.,3.,11.,4.,10.,5.,9.,6.,8.,7.]; - /// assert_eq!(v1.medf_correlation(&v2).unwrap(),-0.1076923076923077); - /// assert_eq!(v1.med_correlation(&v2,&mut |a,b| a.total_cmp(b),|&a| identity(a)).unwrap(),-0.1076923076923077); + /// assert_eq!(v1.medf_correlation(&v2).unwrap(),-0.08131842079168768); + /// assert_eq!(v1.med_correlation(&v2,&mut |a,b| a.total_cmp(b),|&a| identity(a)).unwrap(),-0.08131842079168768); /// ``` fn med_correlation( self,