NoiseAmpl.
A noise component of fixed shape but unknown detector amplitude value.
The noise power spectra are described by a (ndet, nbin) array for
which each column is multiply by a scalar factor (ndet factors)
considered as the only free parameters of the component.
| def smica.component.NoiseAmpl.get_theta |
( |
|
self, |
|
|
|
ampl = None |
|
) |
| |
Return component parameters as a vector.
Parameters
----------
ampl : array-like, shape (ndet,1).
If None, values are read from inner amplitude scalar values.
Returns
----------
array-like, shape (N, 1), where N is the number of free parameters.
| def smica.component.NoiseAmpl.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.NoiseAmpl.get_thetaroot |
( |
|
self, |
|
|
|
iRr, |
|
|
|
bin = 0, |
|
|
|
B = None |
|
) |
| |
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.
bin : int, bin number
Returns
----------
array-like, shape (mxm, N), where N is the number of free parameters.
| def smica.component.NoiseAmpl.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.NoiseAmpl.score |
( |
|
self, |
|
|
|
D |
|
) |
| |
Return first derivative of the likelihood wrt component
parameters (ie scalar factor ampl).
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,1).
The score of fixed parameters is set to zero.
| def smica.component.NoiseAmpl.set_powspec |
( |
|
self, |
|
|
|
powspec, |
|
|
|
bin = None, |
|
|
|
fixed = None |
|
) |
| |
Set power spectra array.
Parameters
----------
powspec : array-like, shape (ndet, nbin).
bin : bin number. If None, all bins are set.
fixed : array-like, shape (ndet, nbin)
Entries which are not equal to zero point to
fixed indices. It is also possible to use keywords 'all' and
'null' to fix (respectively) all parameters or none.