Public Member Functions | |
| def | __init__ |
| def | __call__ |
Static Public Member Functions | |
| def | add_quadrature_phase |
Public Attributes | |
| n | |
| fwdplan | |
| revplan | |
| in_fseries | |
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.
| 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.
| 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.
|
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.
1.8.5