Learn R Programming

Rdimtools (version 1.0.0)

est.mindml: MINDml

Description

It is a minimum neighbor distance estimator of the intrinsic dimension based on Maximum Likelihood principle.

Usage

est.mindml(X, k = 5)

Arguments

X

an \((n\times p)\) matrix or data frame whose rows are observations.

k

the neighborhood size for defining locality.

Value

a named list containing containing

estdim

the global estimated dimension.

References

lombardi_minimum_2011Rdimtools

See Also

est.mindkl

Examples

Run this code
# NOT RUN {
## create 3 datasets of intrinsic dimension 2.
X1 = aux.gensamples(dname="swiss")
X2 = aux.gensamples(dname="ribbon")
X3 = aux.gensamples(dname="saddle")

## acquire an estimate for intrinsic dimension
out1 = est.mindml(X1, k=10)
out2 = est.mindml(X2, k=10)
out3 = est.mindml(X3, k=10)

## print the results
sprintf("* est.mindml : estimated dimension for 'swiss'  data is %.2f.",out1$estdim)
sprintf("* est.mindml : estimated dimension for 'ribbon' data is %.2f.",out2$estdim)
sprintf("* est.mindml : estimated dimension for 'saddle' data is %.2f.",out3$estdim)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab