gstlal-inspiral  1.9.2
 All Classes Namespaces Files Functions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
templates.QuadraturePhase Class Reference
Inheritance diagram for templates.QuadraturePhase:
[legend]
Collaboration diagram for templates.QuadraturePhase:
[legend]

Public Member Functions

def __init__
 
def __call__
 

Static Public Member Functions

def add_quadrature_phase
 

Public Attributes

 n
 
 fwdplan
 
 revplan
 
 in_fseries
 

Detailed Description

A tool for generating the quadrature phase of a real-valued
template.

Example:

>>> import numpy
>>> import lal
>>> q = QuadraturePhase(128) # initialize for 128-sample templates
>>> inseries = lal.CreateREAL8TimeSeries(deltaT = 1.0 / 128, length = 128)
>>> inseries.data.data = numpy.cos(numpy.arange(128, dtype = "double") * 2 * numpy.pi / 128) # one cycle of cos(t)
>>> outseries = q(inseries) # output has cos(t) in real part, sin(t) in imaginary part

Definition at line 103 of file templates.py.

Constructor & Destructor Documentation

def templates.QuadraturePhase.__init__ (   self,
  n 
)
Initialize.  n is the size, in samples, of the templates to
be processed.  This is used to pre-allocate work space.

Definition at line 117 of file templates.py.

Member Function Documentation

def templates.QuadraturePhase.__call__ (   self,
  tseries 
)
Transform the real-valued time series stored in tseries
into a complex-valued time series.  The return value is a
newly-allocated complex time series.  The input time series
is stored in the real part of the output time series, and
the complex part stores the quadrature phase.

Definition at line 173 of file templates.py.

def templates.QuadraturePhase.add_quadrature_phase (   fseries,
  n 
)
static
From the Fourier transform of a real-valued function of
time, compute and return the Fourier transform of the
complex-valued function of time whose real component is the
original time series and whose imaginary component is the
quadrature phase of the real part.  fseries is a LAL
COMPLEX16FrequencySeries and n is the number of samples in
the original time series.

Definition at line 129 of file templates.py.


The documentation for this class was generated from the following file: