CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions
cuv::libs::kmeans Namespace Reference

K-Means algorithm. More...

Functions

template<class __data_value_type , class __memory_space_type , class __memory_layout_type >
void compute_clusters (cuv::tensor< __data_value_type, __memory_space_type, __memory_layout_type > &clusters, const cuv::tensor< __data_value_type, __memory_space_type, __memory_layout_type > &data, const cuv::tensor< typename cuv::tensor< __data_value_type, __memory_space_type, __memory_layout_type >::index_type, __memory_space_type > &indices)
 Compute the new cluster centers in one step.
template<class __data_value_type , class __memory_space_type , class __memory_layout_type >
void sort_by_index (cuv::tensor< __data_value_type, __memory_space_type, __memory_layout_type > &res, cuv::tensor< typename cuv::tensor< __data_value_type, __memory_space_type, __memory_layout_type >::index_type, __memory_space_type > &indices, const cuv::tensor< __data_value_type, __memory_space_type, __memory_layout_type > &data)
 Sort the dataset according to the indices.

Detailed Description

K-Means algorithm.