Learn R Programming

DRquality (version 0.2.1)

Cmeasure: C-Measure subtypes

Description

Calculate the C-Measure subtypes of minimal path length and minimal wiring

Usage

Cmeasure(Data, Projection, k = 1)

Value

[1:2] Numerical vector of MinimalPathlength and MinimalWiring values.

Arguments

Data

[1:n,1:d] numerical matrix of points in input space.

Projection

[1:n,1:2] numerical matrix of points in output space.

k

Number of nearest neighbors, both measures set it always to k=1.

Author

Michael Thrun

Examples

Run this code

# \donttest{
if(requireNamespace("FCPS")){
data(Hepta,package="FCPS")
projection=cmdscale(dist(Hepta$Data), k=2)
Cmeasure(Hepta$Data,projection)
}
# }
# \dontshow{
n=100
Data=cbind(rnorm(100),rnorm(100,2,3))
Cmeasure(Data,cbind(runif(n),runif(n)))
# }

Run the code above in your browser using DataLab