#include <math_kmeans.h>
List of all members.
Detailed Description
template<typename V, typename M>
class OpenTissue::math::detail::KMeans< V, M >
A General Purpose KMeans algorithm Implementation.
The class takes two template arguments: V a vector type and M a matrix type.
Member Typedef Documentation
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
template<typename V , typename M >
Member Function Documentation
template<typename V , typename M >
Cluster Begin Iterator.
- Returns:
- An iterator to the first cluster.
template<typename V , typename M >
Cluster End Iterator.
- Returns:
- An iterator to one past the last cluster.
template<typename V , typename M >
This method re-assigns feature points to clusters. Afterwards the method tries to re-estimate the clusters using a covariance analysis of the assigned feature points.
- Returns:
- If a change occured in the reassignment of feature points then the return value is true. If the return value is false then it simply means that the clusters did not change. In other words we would have converged.
template<typename V , typename M >
Get number of feature points.
- Returns:
- The number of feature points.
template<typename V , typename M >
template<typename vector_iterator >
Initialize KMeans Algorithm. This method creates an initial set of clusters and assign feature points to them.
- Parameters:
-
| points | An array type container of feature points. |
| K | The wanted number of clusters. |
template<typename V , typename M >
Membership Begin Iterator.
- Returns:
- An iterator to the first feature point membership information.
template<typename V , typename M >
Membership End Iterator.
- Returns:
- An iterator to one past the last feature point membership information.
template<typename V , typename M >
template<typename vector_iterator >
void OpenTissue::math::detail::KMeans< V, M >::run |
( |
vector_iterator const & |
begin, |
|
|
vector_iterator const & |
end, |
|
|
size_t const & |
K, |
|
|
size_t & |
iteration, |
|
|
size_t const & |
max_iterations | |
|
) |
| | [inline] |
K-means.
- Parameters:
-
| begin | An iterator to the first feature point. |
| end | An iterator to the position one past the last feature point. |
| K | The number of clusters |
| iteration | Upon return this argument holds the number of iterations that was done. |
| max_iterations | The maximum number of iterations to perform the KMeans algorithm. |
Member Data Documentation
template<typename V , typename M >
template<typename V , typename M >
Feature to cluster membership container.
The documentation for this class was generated from the following file:
- /home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/math/math_kmeans.h