Template Function beluga::clusterizer_detail::make_cluster_map
Defined in File cluster_based_estimation.hpp
Function Documentation
-
template<class States, class Weights, class Hashes>
static auto beluga::clusterizer_detail::make_cluster_map(States &&states, Weights &&weights, Hashes &&hashes) Create a cluster map from a range of particles and their corresponding spatial hashes.
This method will populate all the relevant fields in the map except for the cluster ID, which has to be computed with a separate call to
assign_clusters
.- Template Parameters:
States – The range type for particle states.
Weights – The range type for particle weights.
Hashes – The range type for particle spatial hashes.
- Parameters:
states – A range of particle states.
weights – A range of particle weights.
hashes – A range of particle spatial hashes.
- Returns:
A map where each unique hash corresponds to a cell with accumulated weight, particle count, and representative state.