Vespucci  1.0.0
Vespucci::Math::KMeansWrapper Class Reference

The KMeansWrapper class mlpack relies heavily on template metaprogramming. This means that you only need to compile what you actually use. But Vespucci must be precompiled with all possible options availible at runtime. Here, we instantiate supported combinations of template parameters for the kmeans class in mlpack. More...

#include <kmeanswrapper.h>

Public Member Functions

 KMeansWrapper (const std::string &init, const std::string &metric, bool allow_empty)
 
 ~KMeansWrapper ()
 
arma::vec Cluster (const arma::mat &data, const size_t clusters, arma::mat &centroids)
 

Detailed Description

The KMeansWrapper class mlpack relies heavily on template metaprogramming. This means that you only need to compile what you actually use. But Vespucci must be precompiled with all possible options availible at runtime. Here, we instantiate supported combinations of template parameters for the kmeans class in mlpack.

Definition at line 33 of file kmeanswrapper.h.

Constructor & Destructor Documentation

Vespucci::Math::KMeansWrapper::KMeansWrapper ( const std::string &  init,
const std::string &  metric,
bool  allow_empty 
)

Definition at line 25 of file kmeanswrapper.cpp.

Vespucci::Math::KMeansWrapper::~KMeansWrapper ( )

Definition at line 42 of file kmeanswrapper.cpp.

Member Function Documentation

arma::vec Vespucci::Math::KMeansWrapper::Cluster ( const arma::mat &  data,
const size_t  clusters,
arma::mat &  centroids 
)

Definition at line 47 of file kmeanswrapper.cpp.


The documentation for this class was generated from the following files: