reVX.hybrid_stats.hybrid_stats.spearman_correlation

spearman_correlation(solar_ts, wind_ts)[source]

Compute the Spearman correlation coefficient between the given solar and wind timeseries data. Return just the correlation coefficient.

Parameters:
  • solar_ts (ndarray) – Solar time-series vector for a single site

  • wind_ts (ndarray) – Wind time-series vector for a single site

Returns:

float – Spearman correlation coefficient