compute_moments

pysm3.compute_moments(nu, bnu) Tuple[float, float][source] [edit on github]

Compute centroid and bandwidth (stddev) of a bandpass.

Parameters:
nuarray_like

Frequencies in GHz (strictly increasing).

bnuarray_like

Bandpass weights (non-negative). If not normalized, it will be normalized.

Returns:
centroidfloat

First moment (mean frequency), in GHz.

bandwidthfloat

Standard deviation around the centroid, in GHz.