cell.counts | R Documentation |
cell.counts
returns the amount of data points in each cell getting from binary expansion.
cell.counts(X, dep, unif.margin = FALSE)
X |
a matrix to be tested. |
dep |
depth of the marginal binary expansions. |
unif.margin |
logicals. If |
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.
v <- runif(128, -pi, pi)
X1 <- cos(v) + 2.5 * rnorm(128, 0, 1/20)
X2 <- sin(v) + 2.5 * rnorm(128, 0, 1/20)
cell.counts(cbind(X1, X2), 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.