NoiseDiag.
More...
NoiseDiag.
A non correlated noise component
The noise power spectra are stored in a (ndet, nbin) array.
| def smica.component.NoiseDiag.get_dim |
( |
|
self) | |
|
Return the number of free parameters of the component.
| def smica.component.NoiseDiag.get_theta |
( |
|
self, |
|
|
|
powspec = None |
|
) |
| |
Return component parameters as a vector.
Parameters
----------
powspec : array-like, shape (ndet, nbin).
If None, values are read from inner power spectra.
Returns
----------
array-like, shape (N, 1), where N is the number of free parameters.
| def smica.component.NoiseDiag.get_thetafim |
( |
|
self, |
|
|
|
iRr, |
|
|
|
w, |
|
|
|
B = None |
|
) |
| |
Return Fisher Information Matrix.
Parameters
----------
iRr : array-like, shape (ndet, ndet, nbin).
iRr is the square root of the inverse of the covariance of the
model, which is constant for all components.
w : array-like, shape (1, nbin). w is the number of modes for each bin.
Returns
----------
array-like, shape (N, N), where N is the number of free parameters.
| def smica.component.NoiseDiag.get_thetaroot_local |
( |
|
self, |
|
|
|
iRr, |
|
|
|
Bq, |
|
|
|
bin = 0 |
|
) |
| |
Return root contribution to the Fisher Information Matrix of
local parameters 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.
Bq : array-like, shape (ndet, ndet)
Bq is the beam matrix at bin q. Not used by this component but
present for corresponding API.
q : int
The bin number
Returns
-------
array-like, shape (ndet * ndet, N), where N is the number of
local free parameters and ndet the number of detectors.
| def smica.component.NoiseDiag.get_thetascore |
( |
|
self, |
|
|
|
D, |
|
|
|
B = None |
|
) |
| |
Return likelihood first derivative values wrt component
parameters as a vector.
Parameters
----------
D : array-like, shape (ndet, ndet, nbin).
D is the first derivative of the likelihood wrt the covariance
of the model, which is constant for all components.
Returns
----------
array-like, shape (N, 1), where N is the number of free parameters.
| def smica.component.NoiseDiag.score |
( |
|
self, |
|
|
|
D |
|
) |
| |
Return first derivative of the likelihood wrt component parameters.
Parameters
----------
D : array-like, shape (ndet, ndet, nbin).
D is the first derivative of the likelihood wrt the covariance
of the model, which is constant for all components.
Returns
-------
array, shape (ndet, nbin).
The score of fixed parameters is set to zero.
| def smica.component.NoiseDiag.set_theta |
( |
|
self, |
|
|
|
theta |
|
) |
| |
Set new values for component parameters.
Parameters
----------
theta : array-like, shape (N, 1), where N is the number of free parameters.
The documentation for this class was generated from the following file: