View source: R/rectPartition.R
rectPartition | R Documentation |
The function calculates a rectangular partition of the subspace spanned by the data. Used for BG
.
rectPartition(X1, X2, n, p, exponent = 0.8, eps = 0.01)
X1 |
First data set as matrix |
X2 |
Second data set as matrix |
n |
Number of rows in the data |
p |
Number of columns in the data |
exponent |
Exponent to ensure covergence criteria, should be between 0 and 1 (default: 0.8) |
eps |
Small threshold to guarantee edge points are included (default: 0.01) |
A list with the following components:
A |
A list of |
m_n |
Total number of elements in the partition |
m_n_d |
Number of partition elements per dimension |
Biau G. and Gyorfi, L. (2005). On the asymptotic properties of a nonparametric L_1
-test statistic of homogeneity, IEEE Transactions on Information Theory, 51(11), 3965-3973. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1109/TIT.2005.856979")}
Stolte, M., Kappenberg, F., Rahnenführer, J., Bommert, A. (2024). Methods for quantifying dataset similarity: a review, taxonomy and comparison. Statist. Surv. 18, 163 - 298. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1214/24-SS149")}
BG
# Draw some data
X1 <- matrix(rnorm(1000), ncol = 5)
X2 <- matrix(rnorm(1000, mean = 0.5), ncol = 5)
# Calculate partition
rectPartition(X1, X2, n = nrow(X1), p = ncol(X1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.