multi_binning {Infusion} | R Documentation |
Multivariate histogram
Description
Constructs a multivariate histogram of the points. Optionally, first tests whether a given value is within the convex hull of input points and constructs the histogram only if this test is TRUE. This function is available for development purposes but is not required otherwise . It is sparsely documented and subject to changes without notice.
Usage
multi_binning(m, subsize=trunc(nrow(m)^(Infusion.getOption("binningExponent"))),
expand=5/100, focal=NULL)
Arguments
m |
A matrix representing points in d-dimensional space, where d is the number of columns |
subsize |
A control parameter for an undocumented algorithm |
expand |
A control parameter for an undocumented algorithm |
focal |
Value to be tested for inclusion within the convex hull. Its elements must have names. |
Details
The algorithm may be detailed later.
Value
Either NULL (if the optional test returned FALSE), or an histogram represented as a data frame each row of which represents an histogram cell by its barycenter (a point in d-dimensional space), its “binFactor” (the volume of the cell times the total number of observations) and its “count” (the number of observations within the cell).
The returned data frame has the following attributes: attr(.,"stats")
are the column names of the d-dimensional points;
attr(.,"count")
is the column name of the count, and
attr(.,"binFactor")
is the column name of the binFactor.