|
SMICA
1.0
|
Public Member Functions | |
| def | is_astro |
| def | __init__ |
| def | set_powspec |
| def | fix_powspec |
| def | powspec |
| def | covariance |
| def | close_form |
| def | plot_powspec |
Public Member Functions inherited from smica.component.Component | |
| def | plot_power |
| def | plot_em |
| def | set_gaussian_prior |
| def | get_penalty |
| def | get_score_penalty |
| def | get_fim_penalty |
Public Attributes | |
| ndet | |
| nbin | |
| name | |
Public Attributes inherited from smica.component.Component | |
| mu | |
| sigma_inv | |
A noise component. Noise components contribute to the covariance R_q via a diagonal matrix of noise power spectra. That is R_q = diag(N_q). This means that noise is supposed to be uncorrelated from one detector to another.
| def smica.component.Noise.__init__ | ( | self, | |
| ndet, | |||
| nbin, | |||
name = None |
|||
| ) |
Initialize component parameters arrays. Parameters ---------- ndet : number of detectors nbin : number of bins name : name of the component
| def smica.component.Noise.close_form | ( | self, | |
| stats, | |||
| R | |||
| ) |
Update parameters using a close form algorithm. Parameters ---------- stats : array-like, shape (ndet, ndet, nbin). Second order statistics ie empirical covariance matrices of the observations. R : array-like, shape (ndet, ndet, nbin). Covariance matrices of the model.
| def smica.component.Noise.covariance | ( | self, | |
bin = None |
|||
| ) |
Return the covariance matrix(ces) (ie the contribution to the covariance of the model). Parameters ---------- bin : bin number. If None, return all matrices in a three dimensional array. Returns ------- array, shape (ndet, ndet, nbin).
| def smica.component.Noise.fix_powspec | ( | self, | |
| fixed | |||
| ) |
Fix entries of power spectra array. Parameters ---------- 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.
| def smica.component.Noise.plot_powspec | ( | self, | |
freqname = None, |
|||
figfile = None |
|||
| ) |
Plot noise power spectra. Parameters ---------- freqname : list, length (ndet), plot labels. figfile : string, filename where to save the plot.
| def smica.component.Noise.powspec | ( | self, | |
bin = None |
|||
| ) |
Return power spectra array. Parameters ---------- bin : bin number. If None, complete array is returned. Returns ------- array, shape (ndet, nbin).
| def smica.component.Noise.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.
1.8.4