Collaboration diagram for mpqc.Math.Clustering:
Documentation
Provides classes and functions for generic cluster analysis.
Classes | |
class | mpqc::math::clustering::Kmeans |
Kmeans is a class that performs k-means clustering. More... | |
Functions | |
template<typename Iter > | |
Iter | mpqc::math::clustering::closest_cluster (Iter begin, Iter end, Vector3d const &target_center) |
returns the closest element in the input range to the center provided More... | |
Function Documentation
◆ closest_cluster()
template<typename Iter >
Iter mpqc::math::clustering::closest_cluster | ( | Iter | begin, |
Iter | end, | ||
Vector3d const & | target_center | ||
) |
returns the closest element in the input range to the center provided
@{
- Parameters
-
begin an iterator to the first cluster in the list to search over. end an iterator to one past the last cluster to search over. target_center a Vector3d, the center, for which the closest cluster will be found
The cluster type only requires that a non-intrusive center function that returns a Vec3d be defined.