Skip to content

Planck-Tapered Conditional Ratio Power Law

planck_tapered_conditional_ratio_power_law

Conditional ratio power law distribution with Planck tapering.

Functions

planck_tapered_conditional_ratio_power_law_unnormalized_logpdf

planck_tapered_conditional_ratio_power_law_unnormalized_logpdf(x: Array, denominator: Array, beta: float, numerator_minimum: float, taper_range: float) -> Array

Compute the unnormalized logpdf of Planck tapered conditional ratio power law distribution.

Parameters:

Name Type Description Default
x Array

An array of values to evaluate the unnormalized logpdf.

required
denominator Array

Denominator.

required
beta float

Spectral index of the ratio.

required
numerator_minimum float

Minimum of the numerator.

required
taper_range float

Range of the tapering.

required

Returns:

Type Description
Array

Unnormalized logpdf.

planck_tapered_conditional_ratio_power_law_cdf

planck_tapered_conditional_ratio_power_law_cdf(denominator: Array, beta: float, numerator_minimum: float, taper_range: float, minimum: float, maximum: float, n_grids: int) -> tuple[Array, Array]

Compute the cdf of Planck tapered conditional ratio power law distribution.

Parameters:

Name Type Description Default
denominator Array

Denominator.

required
beta float

Spectral index of the ratio.

required
numerator_minimum float

Minimum of the numerator.

required
taper_range float

Range of the tapering.

required
minimum float

Minimum of the ratio.

required
maximum float

Maximum of the ratio.

required
n_grids int

Number of grid points to evaluate the CDF.

required

Returns:

Name Type Description
x Array

Grid points to evaluate the CDF.

cdf Array

Cumulative distribution function.