earthkit.meteo.score.array.pearson_correlation

earthkit.meteo.score.array.pearson_correlation(x, y, axis=0)

Compute pearson correlation coefficient.

Parameters:
  • x (array-like) – Input arrays, shapes must match

  • y (array-like) – Input arrays, shapes must match

  • axis (int) – Axis along which to compute correlation

Returns:

Correlation, shape is the same as x with axis removed

Return type:

array-like