statistics#

Example Usage#

Full Contents:#

statistics.binnedstats(arr, dim2bin)#

Take statistics of 2nd column of an array based on binning of column 1

Parameters
  • arr (N x M numeric array) – data to bin and take statistics

  • dx (float or Qx1 float array) – spacing between bins (bin width) or edges of bins if array

Returns

  • vstat (#bins x 3 float array) – the bin centers, mean y value in each bin variance of values in bin

  • NPMitchell 2020

Indices and tables#