xoa.core.stats.taylor_stats

Contents

xoa.core.stats.taylor_stats#

xoa.core.stats.taylor_stats(model, ref)[source]#

Statistics that are displayed in a Taylor diagram

Only the samples that are valid in both arrays are used. The standard deviations are the biased ones (ddof=0), so that the centered root mean square difference crmsd verifies crmsd**2 = std**2 + std_ref**2 - 2 * std * std_ref * corr.

Parameters:
  • model (array_like(n, m)) – n series of m samples. A 1D array is a single series.

  • ref (array_like(m) or array_like(n, m)) – Reference series, that are shared by the n series of the model when it is 1D.

Returns:

  • numpy.ndarray(n) – Standard deviation of the model

  • numpy.ndarray(n) – Standard deviation of the reference

  • numpy.ndarray(n) – Correlation, which is nan when a series is constant

  • numpy.ndarray(n) – Centered root mean square difference