firecrown.likelihood.binned_cluster_number_counts
Binned cluster number counts statistic support.
Classes
A statistic representing the number of clusters in a z, mass bin. |
Module Contents
- class firecrown.likelihood.binned_cluster_number_counts.BinnedClusterNumberCounts(cluster_properties, survey_name, cluster_recipe, systematics=None)[source]
Bases:
firecrown.likelihood.binned_cluster.BinnedCluster
A statistic representing the number of clusters in a z, mass bin.
- Parameters:
cluster_properties (firecrown.models.cluster.ClusterProperty)
survey_name (str)
systematics (None | list[firecrown.likelihood.source.SourceSystematic])
- read(sacc_data)[source]
Read the data for this statistic and mark it as ready for use.
- Parameters:
sacc_data (sacc.Sacc) – The data in the sacc format.
- Return type:
None
- get_binned_cluster_property(tools, cluster_counts, cluster_properties)[source]
Computes the mean mass of clusters in each bin.
Using the data from the sacc file, this function evaluates the likelihood for a single point of the parameter space, and returns the predicted mean mass of the clusters in each bin.
- Parameters:
cluster_counts (list[float]) – The number of clusters in each bin.
cluster_properties (firecrown.models.cluster.ClusterProperty) – The cluster observables to use.
- Return type:
list[float]
- get_binned_cluster_counts(tools)[source]
Computes the number of clusters in each bin.
Using the data from the sacc file, this function evaluates the likelihood for a single point of the parameter space, and returns the predicted number of clusters in each bin.
- Parameters:
tools (firecrown.modeling_tools.ModelingTools) – The modeling tools used to compute the statistic.
- Returns:
The number of clusters in each bin.
- Return type:
list[float]