Kendall's tau rank correlation. At this point this is basically a copy-paste from Apache Commons Math library with some additions taken from scipy and R cor.test function
Example usage:
let res = tau_b;
assert_eq!;
If you want to compute correlation, let's say, for f64 type, then you will have to
provide either a custom comparator function or declare Ord trait for your custom floating point
numbers type (see float crate).
use Ordering;
let = tau_b_with_comparator.unwrap;
assert_eq!;
The function will return an error if you pass empty arrays into it or x and y arrays'
dimensions are not equal.