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,