classify densities by maximum KS p-value

Description

compares a sample to reference distributions, identifying the closest reference by maximum KS p

Usage

1
maxKSp( x, is.centered=TRUE, dists=eddDistList, thresh=.1 )

Arguments

x

matrix of samples, distributions to be classified by row

is.centered

have data been brought to median 0, mad 1

dists

list of instances of class eddDist

thresh

p-value above which some test must lie, or else 'outlier' is declared

Value

a vector of classifications

Examples

1
2
3
X <- rbind( rnorm(30), runif(30), rchisq(30,1))
tX <- t(apply(X,1,centerScale))
apply(tX,1,maxKSp)