mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
Kmeans.hpp File Reference
#include <Eigen/Dense>
#include <mutable/mutable.hpp>
#include <vector>
Include dependency graph for Kmeans.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  m
 

‍mutable namespace


 

Typedefs

using m::MatrixRXf = Eigen::Matrix< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >
 

Functions

MatrixRXf M_EXPORT m::kmeans_plus_plus (const Eigen::MatrixXf &data, unsigned k)
 Compute initial cluster centroids using k-means++ algorithm.
 
std::pair< std::vector< unsigned >, MatrixRXf > M_EXPORT m::kmeans_with_centroids (const Eigen::MatrixXf &data, unsigned k)
 Clusters the given data according to the k-means algorithm.
 
std::vector< unsigned > M_EXPORT m::kmeans (const Eigen::MatrixXf &data, unsigned k)
 Clusters the given data according to the k-means algorithm.