Skip to content

Planck-Tapered Broken Power Law Plus Two Peaks

planck_tapered_broken_power_law_plus_two_peaks

Broken power law plus two peaks distribution with Planck tapering.

Functions

planck_tapered_broken_power_law_plus_two_peaks

planck_tapered_broken_power_law_plus_two_peaks(key: Array, n_samples: int, alpha_1: float, alpha_2: float, transition: float, minimum: float, maximum: float, mean_1: float, sigma_1: float, mean_2: float, sigma_2: float, taper_range: float, lambda_0: float, lambda_1: float, n_grids: int = 1000) -> Array

Draw samples from the Planck tapered broker power law plus two peaks distribution.

Parameters:

Name Type Description Default
key Array

Random key.

required
n_samples int

Number of samples.

required
alpha_1 float

Spectral index of the first power law.

required
alpha_2 float

Spectral index of the second power law.

required
transition float

Transition point of the broken power law.

required
minimum float

Minimum of the distribution.

required
maximum float

Maximum of the distribution.

required
mean_1 float

Mean of the first peak.

required
sigma_1 float

Standard deviation of the first peak.

required
mean_2 float

Mean of the second peak.

required
sigma_2 float

Standard deviation of the second peak.

required
taper_range float

Range of the tapering.

required
lambda_0 float

Mixing fraction of the power law.

required
lambda_1 float

Mixing fraction of the first peak.

required
n_grids int

Number of grid points to evaluate the CDF.

1000

Returns:

Type Description
Array

An array of samples.