Template Function beluga::estimate_clusters
Defined in File cluster_based_estimation.hpp
Function Documentation
-
template<class States, class Weights, class Clusters>
auto beluga::estimate_clusters(States &&states, Weights &&weights, Clusters &&clusters) For each cluster, estimate the mean and covariance of the states that belong to it.
- Template Parameters:
States – Range type of the states.
Weights – Range type of the weights.
Hashes – Range type of the hashes.
- Parameters:
states – Range containing the states of the particles.
weights – Range containing the weights of the particles.
clusters – Cluster ids of the particles.
- Returns:
A vector of elements, containing the weight, mean and covariance of each cluster, in no particular order.