|
CLASSpp Manual
Cosmology reference and developer manual
|
#include <acoustic_spline.h>
Public Member Functions | |
| AcousticSpline (const double *l, int n, const double *cl, int stride, double omega) | |
| double | operator() (double l) const |
Static Public Member Functions | |
| static bool | Applies (const double *l, int n, const double *cl, int stride, double omega) |
Interpolation in l of a CMB power spectrum known at sampled multipoles, built for its acoustic oscillation.
C_l is sampled every l_linstep multipoles and interpolated in between. A cubic spline treats the acoustic oscillation as an error, which grows as (h omega)^4. This interpolates u_l = l(l+1) C_l / S(l) instead, with
It passes through every sample, so only the values between them change. Nothing is fitted across the oscillation: there is no template, and a model whose peaks move is handled like any other. docs/superpowers/specs/2026-10-27-acoustic-l-interpolation-design.md
| AcousticSpline::AcousticSpline | ( | const double * | l, |
| int | n, | ||
| const double * | cl, | ||
| int | stride, | ||
| double | omega | ||
| ) |
l[0..n-1]: the sampled multipoles, increasing; cl: C_l at them, cl[i * stride]; omega: 2 theta_s.
| double AcousticSpline::operator() | ( | double | l | ) | const |
C_l at l, for l in [l.front(), l.back()].
|
static |
Whether this interpolation applies: false for a spectrum that is zero everywhere, and for samples too sparse for the frequency (omega h near pi makes the spline singular). The caller keeps its cubic spline then.