pyrfu.pyrf.pvi module#

pyrfu.pyrf.pvi.pvi(inp, scale: int = 10)[source]#

Returns the PVI of a time series.

\[y = \frac{|x_i - x_{i+s}|^2}{<|x_i - x_{i+s}|^2>}\]

where \(s\) is the scale.

Parameters:
  • inp (xarray.DataArray) – Input time series.

  • scale (int, Optional) – Scale at which to compute the PVI. Default is 10.

Returns:

values – An xarray containing the pvi of the original time series.

Return type:

xarray.DataArray