sfof
|
Class for perfoming friends-of-friends cluster detection. More...
#include <fof_class.hpp>
Public Member Functions | |
FoF (int max_ngal_val) | |
Initialise FoF instance. More... | |
void | setup (double, double, const std::string &) |
This method sets-up a FoF instance. More... | |
void | remove (int) |
This method removes Cluster instances that have too few member Galaxy instances. More... | |
int | friends_of_friends (int, const std::vector< Zbin > &, std::vector< Galaxy > &, const Kdtree &) |
This method performs a friends-of-friends search for Cluster instances in a given Zbin instance. More... | |
Public Attributes | |
std::vector< Cluster > | list_of_clusters |
Vector of Cluster instances. More... | |
Private Member Functions | |
bool | bin_check (int, const std::vector< int > &) |
This method checks if a Galaxy instance is compatible with a given Zbin instance. More... | |
bool | friendship (const Zbin &, const Galaxy &, const Galaxy &, double) |
This method checks if two Galaxy instances satisfy the linking conditions in a given Zbin instance. More... | |
void | new_cluster (const Zbin &, Galaxy *, Galaxy *) |
This method creates a new Cluster instance. More... | |
void | add_member (const Zbin &, Galaxy *, Cluster &) |
This method adds a new member Galaxy instance to an existing Cluster instance. More... | |
int | find_friends (const Zbin &, Galaxy &, double, std::vector< Galaxy > &, const Kdtree &) |
This method finds Galaxy instances linked to a given Galaxy instance in a given Zbin instance. More... | |
int | find_friends_of_friends (const Zbin &, Cluster &, double, std::vector< Galaxy > &, const Kdtree &) |
This method finds Galaxy instances linked to the members of a given Cluster instance in a given Zbin instance. More... | |
Private Attributes | |
Astro | astro |
Include Astro class. More... | |
int | cluster_count |
Count of current number of Cluster instances. More... | |
int | max_ngal |
Maximum number of cluster members. More... | |
double | link_r |
Transverse linking parameter. More... | |
double | link_z |
Line-of-sight linking parameter. More... | |
std::string | mode |
FoF mode ["spec"/"phot"]. More... | |
Class for perfoming friends-of-friends cluster detection.
This class produces a vector of Cluster instances by performing a friends-of-friends search in a given Zbin instance.
FoF::FoF | ( | int | max_ngal_val | ) |
Initialise FoF instance.
|
private |
|
private |
This method finds Galaxy instances linked to a given Galaxy instance in a given Zbin instance.
[in] | zbin | Zbin instance. |
[in] | gal | Galaxy instance. |
[in] | rfriend | R_friend value. |
[in] | gal_list | Vector of Galaxy instances. |
[in] | tree | Vector of Kdtree node instances. |
Function to find galaxies linked to the galaxy in question.
< Loop through kd-tree nodes
< Create new cluster
void FoF::remove | ( | int | min_ngal | ) |
void FoF::setup | ( | double | link_r_val, |
double | link_z_val, | ||
const std::string & | mode_val | ||
) |
|
private |
Count of current number of Cluster instances.
|
private |
Transverse linking parameter.
|
private |
Line-of-sight linking parameter.
|
private |
Maximum number of cluster members.
|
private |
FoF mode ["spec"/"phot"].