View source: R/interesting-indices.r
norm_bin | R Documentation |
Compares the similarity between the projected distribution and a normal distribution.
norm_bin: compares the count in 100 histogram bins
norm_kol: compares the cdf based on the Kolmogorov–Smirnov test (KS test)
norm_bin(nr)
norm_kol(nr)
nr |
The number of rows in the target matrix |
# manually compute the norm_kol index
# create the index function
set.seed(123)
index <- norm_kol(nrow(flea[, 1:3]))
# create the projection
proj <- matrix(c(1, 0, 0), nrow = 3)
# pre-process the example data
flea_s <- sphere_data(flea[, 1:3])
# produce the index value
index(flea_s %*% proj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.