folding.test: Perform the folding test of unimodality

Description Usage Arguments Value Examples

Description

Perform the folding test of unimodality

Usage

1

Arguments

X

$nxd$ matrix (n observations, d dimensions)

Value

1 if unimodal, 0 if multimodal

Examples

1
2
3
4
5
6
7
library(MASS)
n = 10000
d = 3
mu = c(0,0,0)
Sigma = matrix(c(1,0.5,0.5,0.5,1,0.5,0.5,0.5,1), ncol = d)
X = mvrnorm(n = n, mu = mu, Sigma = Sigma)
m = folding.test(X)

asiffer/Rfolding documentation built on May 6, 2019, 6:57 p.m.