reVX.hybrid_stats.hybrid_stats.pearson_correlation

pearson_correlation(solar_ts, wind_ts)[source]

Compute the Pearson 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 – Pearson correlation coefficient