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