Skip to main content

stats_correlation

Function stats_correlation 

Source
pub fn stats_correlation(x_json: String, y_json: String) -> String
Expand description

Computes the correlation coefficient between two JSON arrays of f64 values.

§Arguments

  • x_json - JSON string representing the first array of f64 values
  • y_json - JSON string representing the second array of f64 values

§Returns

JSON string with the correlation coefficient, or “null” if input is invalid