#include <lal/LALDemod.h>
The following is a brief synopsis of the demodulation, or 'Coherent Transform', procedure.
In order to remove frequency and amplitude modulation of a time series
, we need two basic components:
| (10.1) |
where
is the observation time,
In writing the previous equation we have assumed that there is a total of
data samples and
.
is the expected phase at time
for an
intrinsic emission frequency
(where the denominator is the DeFT time baseline).
depends on
, a vector of parameters that defines the phase model. Typically these are the source location and the spin-down parameter values of the template source for which one is
demodulating. For simplicity, we will focus only on
; the analysis for
is identical.
Let us now suppose that the time series
is composed of
chunks, each of
samples. If we introduce a short-time index
and a short time-series index
, so that
, we can rewrite the above sum as
is a periodic function with period equal to one sidereal day. Since the sum over
won't change significantly, and thus can be taken outside of that summation, and then is evaluated at the midpoint of each SFT time. Now, If
; thus we can Taylor-expand ComputeSky() routine, also in this package. Incidentally, in the code, these are the values contained in the variable skyConst.
Note that the function
is 8 the power loss due to this approximation is less than
Now, computing
and
can be done in parallel; given the approximations we have made, for each iteration of the
loop, one computes first
(through the k-loop), multiplies by
, and then forms the statistics of
at the same time. After all the iterations of the
loop are complete, that is, when all SFTs have been exhausted, the final statistic is computed.