Implementation of log-linear observation model
The log-linear model writes
.. math:: b_nl = \exp(\sum_k \alpha_nk \Delta_nkl)
where n is the detector index, l the bin index and k the basis
index. The matrix observation model B is diagonal with b_nl as
element.
| def smica.instrument.LogLinearBeam.get_thetafim |
( |
|
self, |
|
|
|
iRr, |
|
|
|
nmode, |
|
|
|
signal_comp, |
|
|
|
brute_force = False |
|
) |
| |
Return Fisher Information Matrix.
Parameters
----------
iRr : array-like
shape of (ndet, ndet, nbin). iRr is the square root of the
inverse of the sum of the 'sky component' covariance
signal_components : array-like, shape (ndet, ndet, nbin)
The sum of signal components
nmode : ndarray of int
The number of modes for each bin of shape (1, nbin).
Returns
----------
array-like, shape (N, N), where N is the number of free parameters.
| def smica.instrument.LogLinearBeam.get_thetaroot |
( |
|
self, |
|
|
|
iRr, |
|
|
|
signal_component, |
|
|
|
bin = 0 |
|
) |
| |
Return root contribution to the Fisher Information Matrix
for a given bin.
Parameters
----------
iRr : array-like, shape (ndet, ndet).
iRr is the square root of the inverse of the covariance of the
model, which is constant for all components at bin bin
signal_components : array-like, shape (ndet, ndet)
The sum of signal component at bin bin. Beam must not be applied.
bin : int, bin number
Returns
----------
array-like, shape (ndet * ndet, ndim) where ndim is the number
of parameters in the order [vec1-det1 vec1-det2 ... vec2-det1
...]. out[0, :] should match beam.get_theta(). A reshape of
out[0, :].reshape((nvec, ndet)) should match the output of
beam.theta.