ECOCPAK v0.9
|
#include <ecocpak.hpp>
Static Public Member Functions | |
template<typename eT > | |
static void | direct_kmeans (Col< u32 > &indices_out, Col< u32 > &ranks, Mat< eT > ¢roids_out, const Mat< eT > &in, const u32 k, const eT lr) |
K-means clustering. | |
template<typename eT > | |
static void | compute_distance (Row< eT > &dist_out, u32 &winner, const Mat< eT > ¢roids_in, const subview_row< eT > &sample_in) |
template<typename eT > | |
static eT | compute_distance (const subview_row< eT > &sample_in, const subview_row< eT > ¢roid_in) |
template<typename eT > | |
static void | init_centroids (Mat< eT > ¢roids_out, const Mat< eT > &samples_in, const u32 k) |
Initialize centroids. |