Learn R Programming

tourr (version 1.1.0)

norm_bin: 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

Run this code
# 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)

Run the code above in your browser using DataLab