density_clustering_common.cpp
const int MAIN_PROCESS
identify MPI process 0 as main process
Definition: density_clustering_mpi.hpp:39
std::vector< std::size_t > normalized_cluster_names(std::size_t first_frame_above_threshold, std::vector< std::size_t > clustering, std::vector< FreeEnergy > &fe_sorted)
return clustered trajectory with new, distinct cluster names.
Definition: density_clustering.cpp:437
MPI implementations of compute intensive functions.
Definition: density_clustering_mpi.cpp:36
bool lump_initial_clusters(const std::set< std::size_t > &local_nh, std::size_t &distinct_name, std::vector< std::size_t > &clustering, const std::vector< FreeEnergy > &fe_sorted, std::size_t first_frame_above_threshold)
lump clusters based on distance threshold in screening process
Definition: density_clustering.cpp:506
Clustering::Tools::Neighborhood Neighborhood
map frame id to neighbors
Definition: density_clustering.hpp:58
Define global logger.
std::tuple< std::vector< std::size_t >, std::size_t, double, std::vector< FreeEnergy >, std::set< std::size_t >, std::size_t > prepare_initial_clustering(const std::vector< float > &free_energy, const Neighborhood &nh, const float free_energy_threshold, const std::size_t n_rows, const std::vector< std::size_t > initial_clusters)
Definition: density_clustering.cpp:387
void screening_log(const double sigma2, const std::size_t first_frame_above_threshold, const std::vector< FreeEnergy > &fe_sorted)
log output for screening steps
Definition: density_clustering.cpp:362
std::string stringprintf(const std::string &str,...)
printf-version for std::string
Definition: tools.cpp:80
std::set< std::size_t > high_density_neighborhood(const float *coords, const std::size_t n_cols, const std::vector< FreeEnergy > &sorted_fe, const std::size_t i_frame, const std::size_t limit, const float max_dist, const int mpi_n_nodes, const int mpi_node_id)
Definition: density_clustering_mpi.cpp:298
std::vector< std::size_t > screening(const std::vector< float > &free_energy, const Neighborhood &nh, const float free_energy_threshold, const float *coords, const std::size_t n_rows, const std::size_t n_cols, const std::vector< std::size_t > initial_clusters)
Definition: density_clustering_common.cpp:38