sfof
Static Public Member Functions | List of all members
Merge Class Reference

Class for merging Cluster instances. More...

#include <merge_class.hpp>

Static Public Member Functions

static void join_uf (std::vector< Cluster > &)
 This method uses the union-find algorithm to create union-find groups in agreement with the Cluster members. More...
 
static void rearrange_clusters (std::vector< Galaxy > &, std::vector< Cluster > &)
 This method creates Cluster instances following the UnionFind data in each Galaxy. More...
 
static void rearrange_clusters (std::map< unsigned long, Galaxy > &, std::vector< Cluster > &)
 This method creates Cluster instances following the UnionFind data in each Galaxy. More...
 

Detailed Description

Class for merging Cluster instances.

This class merges Cluster instances that have common Galaxy instances.

Member Function Documentation

◆ join_uf()

void Merge::join_uf ( std::vector< Cluster > &  clusters)
static

This method uses the union-find algorithm to create union-find groups in agreement with the Cluster members.

Parameters
[in]clustersvector of Cluster instances.

◆ rearrange_clusters() [1/2]

void Merge::rearrange_clusters ( std::map< unsigned long, Galaxy > &  gals,
std::vector< Cluster > &  clus_vec 
)
static

This method creates Cluster instances following the UnionFind data in each Galaxy.

Parameters
[in]galsof Galaxy instances to iterate.
[out]clus_vecof Cluster instances to be used to store new clusters. Previous content is cleared.

◆ rearrange_clusters() [2/2]

void Merge::rearrange_clusters ( std::vector< Galaxy > &  gals,
std::vector< Cluster > &  clus_vec 
)
static

This method creates Cluster instances following the UnionFind data in each Galaxy.

Parameters
[in]galsof Galaxy instances to iterate.
[out]clus_vecof Cluster instances to be used to store new clusters. Previous content is cleared.

The documentation for this class was generated from the following files: