The function performs a binning in 1D, 2D or 3D.
binning(x, y, nbins, xrange = NULL)
A list with components
matrix of coordinates of non-empty bin centers
number of observations in nonempty bins
Bin centers in dimension 1
if d>1
Bin centers in dimension 2
if d>2
Bin centers in dimension 3
Break points dimension 1
if d>1
Break points dimension 2
if d>2
Break points dimension 3
number of observations per bin
if !is.null(y)
mean of y in non-empty bins
if !is.null(y)
standard deviations of y in non-empty bins
design matrix, dimension n x d, d %in% 1:3
.
either a response vector of length n or NULL
vector of length d containing number of bins for each dimension, may be set to NULL
range for endpoints of bins for each dimension, either matrix
of dimension 2 x d or NULL. xrange
is increased if the cube defined does not contain all design points.
Joerg Polzehl, polzehl@wias-berlin.de
See Also as aws.irreg