Description Usage Arguments Value See Also Examples

fast Kmean clustering for 1D, 2D and 3D data

1 2 |

`x` |
matrix containing coordinates or mesh3d |

`k` |
number of clusters |

`iter.max` |
maximum number of iterations |

`getClosest` |
logical: if TRUE the indices of the points closest to the k-centers are sought. |

`threads` |
integer: number of threads to use |

returns a list containing

`centers` |
cluster center |

`class` |
vector with cluster association for each coordinate |

If `getClosest=TRUE`

`selected` |
vector with indices of points closest to the centers |

1 2 3 4 |

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.