hist_slide¶
- hist_slide(data, varargin)¶
HIST_SLIDE Create an N-dimensional histogram with sliding (optionally overlapping) bins
- Usage:
[NDhist, bin_edges, bin_centers] = hist_slide(data, bin_ranges, bin_widths, bin_steps) [NDhist, bin_edges, bin_centers] = hist_slide(data, bin_ranges, bin_widths, bin_steps, bin_methods)
- Inputs:
data : NxND double - data points (one per row) – required bin_ranges : NDx2 double - [min max] per dimension – required bin_widths : 1xND double - bin width per dimension – required bin_steps : 1xND double - step size per dimension – required bin_methods : char or 1xND cell - per-dimension method (default: ‘full’)
- Outputs:
NDhist : ND array - counts in each bin bin_edges : 1xND cell of 2xN edges per dimension bin_centers : 1xND cell of 1xN centers per dimension
Notes
Bins may overlap when bin_step < bin_width. Call with no arguments to run a built-in demo.
See also: create_bins, create_NDbins
∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿