ECOCPAK v0.9
|
Data Structures | |
class | ecocpak::op_kmeans |
Functions | |
template<typename eT > | |
static eT | ecocpak::op_kmeans::compute_distance (const subview_row< eT > &sample_in, const subview_row< eT > ¢roid_in) |
template<typename eT > | |
static void | ecocpak::op_kmeans::compute_distance (Row< eT > &dist_out, u32 &winner, const Mat< eT > ¢roids_in, const subview_row< eT > &sample_in) |
template<typename eT > | |
static void | ecocpak::op_kmeans::init_centroids (Mat< eT > ¢roids_out, const Mat< eT > &samples_in, const u32 k) |
Initialize centroids. | |
template<typename eT > | |
static void | ecocpak::op_kmeans::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 eT | op_kmeans::compute_distance (const subview_row< eT > &sample_in, const subview_row< eT > ¢roid_in) |
template<typename eT > | |
static void | op_kmeans::compute_distance (Row< eT > &dist_out, u32 &winner, const Mat< eT > ¢roids_in, const subview_row< eT > &sample_in) |
template<typename eT > | |
static void | op_kmeans::init_centroids (Mat< eT > ¢roids_out, const Mat< eT > &samples_in, const u32 k) |
Initialize centroids. | |
template<typename eT > | |
static void | op_kmeans::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. |
eT op_kmeans::compute_distance | ( | const subview_row< eT > & | sample_in, |
const subview_row< eT > & | centroid_in | ||
) | [inline, static] |
void op_kmeans::compute_distance | ( | Row< eT > & | dist_out, |
u32 & | winner, | ||
const Mat< eT > & | centroids_in, | ||
const subview_row< eT > & | sample_in | ||
) | [inline, static] |
eT op_kmeans::compute_distance | ( | const subview_row< eT > & | sample_in, |
const subview_row< eT > & | centroid_in | ||
) | [inline, static] |
void op_kmeans::compute_distance | ( | Row< eT > & | dist_out, |
u32 & | winner, | ||
const Mat< eT > & | centroids_in, | ||
const subview_row< eT > & | sample_in | ||
) | [inline, static] |
void op_kmeans::direct_kmeans | ( | Col< u32 > & | indices_out, |
Col< u32 > & | ranks, | ||
Mat< eT > & | centroids_out, | ||
const Mat< eT > & | samples_in, | ||
const u32 | k, | ||
const eT | lr | ||
) | [inline, static] |
K-means clustering.
void op_kmeans::direct_kmeans | ( | Col< u32 > & | indices_out, |
Col< u32 > & | ranks, | ||
Mat< eT > & | centroids_out, | ||
const Mat< eT > & | samples_in, | ||
const u32 | k, | ||
const eT | lr | ||
) | [inline, static] |
K-means clustering.
void op_kmeans::init_centroids | ( | Mat< eT > & | centroids_out, |
const Mat< eT > & | samples_in, | ||
const u32 | k | ||
) | [inline, static] |
Initialize centroids.
void op_kmeans::init_centroids | ( | Mat< eT > & | centroids_out, |
const Mat< eT > & | samples_in, | ||
const u32 | k | ||
) | [inline, static] |
Initialize centroids.