R: Leave-one-out One-nearest-neighbor Evaluation

loo1nn {pdc} | R Documentation

## Leave-one-out One-nearest-neighbor Evaluation

### Description

Evaluates a clustering distance matrix within a supervised learning scheme: leave-one-out one-neares-neighbor cross-validation. This yields a rough estimate of the suitabilty of a distance function for discriminating between classes if ground-truth is known.

### Usage

    loo1nn(x, y)

### Arguments

`x` | A `pdclust` object.
`y` | A vector of the true class labels.

### Value

Returns a percentage-correct estimate.

### Author(s)

Andreas Brandmaier brandmaier@mpib-berlin.mpg.de

### References

Brandmaier, A. M. (2015). pdc: An R Package for Complexity-Based Clustering of Time Series. Journal of Statistical Software, 67(5), 1–23.

### See Also

`pdc.dist` `pdclust`

[Package pdc version 1.0.3 Index]