Description Usage Arguments Value Author(s) See Also Examples
Generates a regular 1D grid from a 1D point set, optionally with weights; similar to hist.
1 |
x |
N-element vector of points |
w |
optional N-element vector with weights |
n |
scalar specifying the number of equally space grid cells |
xlim |
2-element vector specifying the data range (data cropped if necessary). If not given, xlim is set to the full range of x. |
Returns a list of items
x |
n-element vector of cell-center x-coordinates |
xbreak |
(n+1)-element vector of cell-edge x-coordinates |
dx |
spacing between x-coordinates |
xlim |
range of xbreak, same as input argument xlim, if given |
n |
n-element vector giving the number of points in each grid cell |
m |
n-element vector of weighted point counts (masses); only available if |
d |
normalized number densities corresponding to n, such that sum(d)*dx=1. |
c |
normalized mass densities corresponding to m, such that sum(c)*dx=1; only available if |
Danail Obreschkow
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.