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

NoiseAmpl. More...

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

Public Member Functions

def __init__
 
def get_dim
 
def is_astro
 
def set_ampl
 
def set_powspec
 
def powspec
 
def ampl
 
def set_theta
 
def get_theta
 
def score
 
def get_thetascore
 
def get_thetaroot
 
def get_thetafim
 
- 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
 

Public Attributes

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

Detailed Description

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.

Constructor & Destructor Documentation

def smica.component.NoiseAmpl.__init__ (   self,
  ndet,
  nbin,
  name = None 
)
Initialize component parameters arrays.

Parameters
----------
ndet : number of detectors
nbin : number of bins
name : name of the component

Member Function Documentation

def smica.component.NoiseAmpl.ampl (   self)
Return scalar factor ampl.

Returns
-------
ampl : array-like, shape (ndet, 1)
def smica.component.NoiseAmpl.get_dim (   self)
Return the number of 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.powspec (   self,
  bin = None 
)
Return power spectra array (multiply by factor ampl).

Parameters
----------
bin : bin number. If None, complete array is returned.

Returns
-------
array, shape (ndet, nbin).
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_ampl (   self,
  ampl,
  fixed = None 
)
Set amplitude values.

Parameters
----------
ampl : array-like, shape (ndet, 1).
fixed : array-like, shape (ndet, 1).
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.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.
def smica.component.NoiseAmpl.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: