survey([nuisances]) | Contains all the parameters corresponding to a survey. |
redshift_bin(surv, **kwargs) | Represents a redshift bin |
nuisance(name, function, Nx, Ny, xlim, ylim) | Generic nuisance representation of a 2D function |
grid_nuisance(name, function, Nx, Ny, xlim, ylim) | Generic nuisance parametrisation on a grid |
Bases: cosmicpy.survey.nuisance
Generic nuisance parametrisation on a grid
Bases: object
Generic nuisance representation of a 2D function
Bases: object
Represents a redshift bin
Computes the normalised selection function for the bin at a given comoving distance.
Parameters: |
|
---|---|
Returns: | phi – Normalised selection function of the bin. |
Return type: | ndarray, or float if input is scalar |
Notes
The normalised survey selection function \(\phi\) verifies:
Bases: object
Contains all the parameters corresponding to a survey.
Parameters: |
|
---|
Notes
Adds nuisance parameters to the survey params is of the form {‘name’:’bias’, ‘type’:’grid’, ‘Nx’:3,’Ny’:4,’xlim’:[0.001,1],’ylim’:[0.001,0.1]}
Galaxy bias b(z,k)
Parameters: | z (array_like) – Redshift |
---|---|
Returns: | b – Galaxy bias evaluated at the specified redshift |
Return type: | ndarray, or float if input is scalar |
Notes
The galaxy bias follows the
Computes the maximum comoving distance for the survey by corresponding to the point where the selection function reaches the cut level.
Parameters: |
|
---|---|
Returns: | chi – Maximum survey comoving distance |
Return type: | float |
Computes the normalized n(z)
Parameters: | z (array_like) – Redshift |
---|---|
Returns: | n – Normalised redshift distribution evaluated at the specified redshift |
Return type: | ndarray, or float if input scalar |
See also
Computes the non normalized n(z)
Parameters: | z (array_like) – Redshift |
---|---|
Returns: | n – Non normalised redshift distribution evaluated at the specified redshift |
Return type: | ndarray, or float if input scalar |
Computes the normalised survey selection function at a given comoving distance.
Parameters: |
|
---|---|
Returns: | phi – Normalised selection function of the survey. |
Return type: | ndarray, or float if input is scalar |
Notes
The survey selection function \(\phi\) verifies:
where \(V\) is a characteristic volume of the survey chosen such that \(\phi \rightarrow 1\) as \(V \rightarrow \infty\).
Warning
This function returns the selection function scaled by the survey volume i.e. \(\frac{\phi}{V}\)
Updates the survey after parameters have been modified.
Parameters: |
|
---|