mlKmeans: kmeans from MLPACK

Description Usage Arguments Details Value Author(s) References Examples

View source: R/fun.R

Description

kmeans example for using MLPACK with R.

Usage

1
mlKmeans(X, y)

Arguments

X

data matrix.

y

number of clusters.

Details

This is a kmeans example using RcppMLPACK. It uses the Kmeans method in MLPACK and integrates with R.

Value

mlKmeans returns a list with cluster assignment:

Author(s)

For RcppMLPACK: Qiang Kou

For MLPACK: Ryan Curtin

References

MLPACK project: http://www.mlpack.org/

Examples

1
2
  data(trees, package="datasets")
  mlKmeans(t(trees),3)

thirdwing/RcppMLPACK1 documentation built on April 25, 2020, 1:06 p.m.