Public Member Functions | |
def | __init__ |
def | __call__ |
Public Attributes | |
n | |
fwdplan | |
revplan | |
in_fseries |
A tool for generating the quadrature phase of a real-valued template. Example: >>> import numpy >>> from pylal.datatypes import REAL8TimeSeries >>> q = QuadraturePhase(128) # initialize for 128-sample templates >>> inseries = REAL8TimeSeries(deltaT = 1.0 / 128, 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 126 of file templates.py.
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 140 of file templates.py.
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 150 of file templates.py.