Skip to content

Commit

Permalink
3.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
liborty committed Mar 7, 2024
1 parent f43e894 commit 0bc9cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/implementations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0bc9cc3

Please sign in to comment.