cell.counts: Counts the amount of points in each cell after binary expansion.
Description
cell.counts returns the amount of data points in each cell getting from binary expansion.
Usage
cell.counts(X, dep, unif.margin = FALSE)
Value
The result is a dataframe with 2 rows and \(2^(p*dep)\) columns, where \(p\) is the number of columns of X. The first column is the binary index, the second column is the amount of data points.
Arguments
X
a matrix to be tested.
dep
depth of the marginal binary expansions.
unif.margin
logicals. If TRUE the data has been uniformed based on empirical cumulative distribution function. Default to be FALSE and the function uniforms the data.