lib.MapMaking.ComponentMapMaking.Qchi2MM module

class lib.MapMaking.ComponentMapMaking.Qchi2MM.AbstractChi2(preset, TOD_sim, layout=None, beta_map=None)[source]

Bases: ABC

Common base class for chi2-like objects. Subclasses must implement compute_mixing_matrix(x) and, if needed, compute_chi_square(x). A helper compute_qubic_chi(A) is provided because both original classes shared that logic.

Methods

__call__(x)

Call self as a function.

compute_mixing_matrix(x)

Return mixing matrix A with shape (nfreq, ncomp).

compute_qubic_chi(A)

Shared computation of the QUBIC time-domain chi^2 given mixing matrix A.

compute_qubic_chi_varying_beta

abstract compute_mixing_matrix(x)[source]

Return mixing matrix A with shape (nfreq, ncomp).

Return type:

ndarray

compute_qubic_chi(A)[source]

Shared computation of the QUBIC time-domain chi^2 given mixing matrix A. Returns Lqubic and stores it on the instance.

compute_qubic_chi_varying_beta(A)[source]
class lib.MapMaking.ComponentMapMaking.Qchi2MM.Chi2(preset, TOD_sim, parametric=True, beta_map=None)[source]

Bases: AbstractChi2

Methods

__call__(x)

Call self as a function.

compute_mixing_matrix(x)

Return mixing matrix A with shape (nfreq, ncomp).

compute_mixing_matrix_blind(x)

Blind case

compute_mixing_matrix_parametric(nus, x)

Parametric case

compute_qubic_chi(A)

Shared computation of the QUBIC time-domain chi^2 given mixing matrix A.

compute_chi_square

compute_chi_square_fix_beta

compute_chi_square_varying_beta

compute_qubic_chi_varying_beta

compute_chi_square(x)[source]
compute_chi_square_fix_beta(x)[source]
compute_chi_square_varying_beta(x)[source]
compute_mixing_matrix(x)[source]

Return mixing matrix A with shape (nfreq, ncomp).

compute_mixing_matrix_blind(x)[source]

Blind case

compute_mixing_matrix_parametric(nus, x)[source]

Parametric case

class lib.MapMaking.ComponentMapMaking.Qchi2MM.MixedChi2(preset, TOD_sim, layout)[source]

Bases: AbstractChi2

Methods

__call__(x)

Call self as a function.

compute_mixing_matrix(x)

Return mixing matrix A with shape (nfreq, ncomp).

compute_qubic_chi(A)

Shared computation of the QUBIC time-domain chi^2 given mixing matrix A.

unpack(x)

compute_qubic_chi_varying_beta

compute_mixing_matrix(x)[source]

Return mixing matrix A with shape (nfreq, ncomp).

unpack(x)[source]
class lib.MapMaking.ComponentMapMaking.Qchi2MM.ParamLayout(beta_indices, blind_indices, ndim)[source]

Bases: object

beta_indices: list
blind_indices: list
ndim: int