norm_bin: Normality index.

View source: R/interesting-indices.r

norm_binR Documentation

Normality index.

Description

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)

Usage

norm_bin(nr)

norm_kol(nr)

Arguments

nr

The number of rows in the target matrix

Examples

# 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)

tourr documentation built on May 29, 2024, 11:22 a.m.