Description Usage Arguments Details Value Author(s) See Also Examples

A class to hold indexing structures for the KMKNN algorithm for exact nearest neighbor identification.

1 2 3 4 5 6 7 8 | ```
KmknnIndex(data, centers, info, order, NAMES=NULL, distance="Euclidean")
KmknnIndex_cluster_centers(x)
KmknnIndex_cluster_info(x)
## S4 method for signature 'KmknnIndex'
show(object)
``` |

`data` |
A numeric matrix with data points in columns and dimensions in rows. |

`centers` |
A numeric matrix with clusters in columns and dimensions in rows. |

`info` |
A list of statistics for each cluster. |

`order` |
An integer vector of length equal to |

`NAMES` |
A character vector of sample names or |

`distance` |
A string specifying the distance metric to use. |

`x, object` |
A KmknnIndex object. |

The KmknnIndex class holds the indexing structure required to run the KMKNN algorithm.
Users should never need to call the constructor explicitly, but should generate instances of KmknnIndex classes with `buildKmknn`

.

The `KmknnIndex`

constructor will return an instance of the KmknnIndex class.

`KmknnIndex_cluster_centers`

and related getters will return the corresponding slots of `object`

.

Aaron Lun

1 2 3 | ```
example(buildKmknn)
str(KmknnIndex_cluster_centers(out))
str(KmknnIndex_cluster_info(out))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.