Skip to content

Smoothing

smoothing

Functions to smooth distributions.

Functions

planck_tapering_function

planck_tapering_function(x: Array, x_min: float, delta: float) -> Array

Planck tapering function to smoothly transition between 0 and 1.

References: - GWTC-4.0: Population Properties of Merging Compact Binaries: https://arxiv.org/abs/2508.18083

Parameters:

Name Type Description Default
x Array

The input value.

required
x_min float

The minimum value of the transition region.

required
delta float

The width of the transition region.

required

Returns:

Type Description
Array

An array with the value of the tapering function at x.

log_planck_tapering_function

log_planck_tapering_function(x: Array, x_min: float, delta: float) -> Array

Log of the Planck tapering function to smoothly transition between 0 and 1.

References: - GWTC-4.0: Population Properties of Merging Compact Binaries: https://arxiv.org/abs/2508.18083

Parameters:

Name Type Description Default
x Array

The input value.

required
x_min float

The minimum value of the transition region.

required
delta float

The width of the transition region.

required

Returns:

Type Description
Array

An array with the value of the log tapering function at x.