SMICA  1.0
Public Member Functions | List of all members
smica.component.NoiseDiag Class Reference

NoiseDiag. More...

Inheritance diagram for smica.component.NoiseDiag:
smica.component.Noise smica.component.Component

Public Member Functions

def get_dim
 
def is_astro
 
def set_theta
 
def get_theta
 
def score
 
def get_thetascore
 
def get_thetafim
 
def get_thetaroot_local
 
- Public Member Functions inherited from smica.component.Noise
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
 

Additional Inherited Members

- Public Attributes inherited from smica.component.Noise
 ndet
 
 nbin
 
 name
 

Detailed Description

NoiseDiag.


A non correlated noise component

The noise power spectra are stored in a (ndet, nbin) array.

Member Function Documentation

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: