Go to the documentation of this file.
37 FoF(
int max_ngal_val) {
50 void setup (
double,
double,
const std::string &);
95 bool bin_check (
int,
const std::vector<int> &);
145 std::vector<Galaxy> &,
const Kdtree &);
149 #endif // FOF_CLASS_H
Class for storing galaxy properties.
Definition: galaxy_class.hpp:71
Class for storing redshift bin properties.
Definition: zbin_class.hpp:21
double link_z
Line-of-sight linking parameter.
Definition: fof_class.hpp:84
Astro astro
Include Astro class.
Definition: fof_class.hpp:72
bool bin_check(int, const std::vector< int > &)
This method checks if a Galaxy instance is compatible with a given Zbin instance.
Definition: fof_class.cpp:19
std::string mode
FoF mode ["spec"/"phot"].
Definition: fof_class.hpp:87
void setup(double, double, const std::string &)
This method sets-up a FoF instance.
Definition: fof_class.cpp:6
void add_member(const Zbin &, Galaxy *, Cluster &)
This method adds a new member Galaxy instance to an existing Cluster instance.
Definition: fof_class.cpp:61
Class containing basic functions required for astronomy.
Definition: astro.hpp:22
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.
Definition: fof_class.cpp:72
void new_cluster(const Zbin &, Galaxy *, Galaxy *)
This method creates a new Cluster instance.
Definition: fof_class.cpp:50
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.
Definition: fof_class.cpp:31
FoF(int max_ngal_val)
Initialise FoF instance.
Definition: fof_class.hpp:37
Class for constructing a kd-tree.
Definition: kdtree_class.hpp:34
std::vector< Cluster > list_of_clusters
Vector of Cluster instances.
Definition: fof_class.hpp:32
int max_ngal
Maximum number of cluster members.
Definition: fof_class.hpp:78
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.
Definition: fof_class.cpp:116
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 ...
Definition: fof_class.cpp:104
void remove(int)
This method removes Cluster instances that have too few member Galaxy instances.
Definition: fof_class.cpp:144
Class for storing galaxy cluster properties and members.
Definition: cluster_class.hpp:26
double link_r
Transverse linking parameter.
Definition: fof_class.hpp:81
Class for perfoming friends-of-friends cluster detection.
Definition: fof_class.hpp:27
int cluster_count
Count of current number of Cluster instances.
Definition: fof_class.hpp:75