pyrfu.pyrf.waverage module#

pyrfu.pyrf.waverage.waverage(inp, f_sampl: float | None = None, n_pts: int = 7)[source]#

Computes weighted average.

Parameters:
  • inp (array_like) – Input data

  • f_sampl (float, Optional) – Sampling frequency.

  • n_pts (int, Optional) – Number of point to average over 5 ot 7. Default is 7

Returns:

out – Weighted averaged of inp

Return type:

ndarray