Function arrayfire::corrcoef[][src]

pub fn corrcoef<T>(x: &Array<T>, y: &Array<T>) -> (f64, f64) where
    T: HasAfEnum + RealNumber, 

Compute correlation coefficient

Parameters

  • x is the first Array
  • y isthe second Array

Return Values

A tuple of 64-bit floating point values with the coefficients.