20 #include <lal/LALStdio.h>
21 #include <lal/LALStdlib.h>
22 #include <lal/LALConstants.h>
23 #include <lal/Units.h>
24 #include <lal/AVFactories.h>
25 #include <lal/SeqFactories.h>
26 #include <lal/PulsarSimulateCoherentGW.h>
27 #include <lal/GenerateTaylorCW.h>
115 GENERATETAYLORCWH_MSGENUL );
117 GENERATETAYLORCWH_MSGENUL );
121 GENERATETAYLORCWH_MSGEOUT );
123 GENERATETAYLORCWH_MSGEOUT );
125 GENERATETAYLORCWH_MSGEOUT );
127 GENERATETAYLORCWH_MSGEOUT );
132 GENERATETAYLORCWH_MSGENUL );
133 nSpin =
params->f->length;
229 fData =
output->f->data->data;
230 phiData =
output->phi->data->data;
232 for (
i = 0;
i <
n;
i++ ) {
237 while (
j < nSpin ) {
238 f += fSpin[
j] * tPow;
239 phi += fSpin[
j] * ( tPow *=
t ) / (
j + 2.0 );
244 if ( fabs(
f - fPrev ) >
df ) {
245 df = fabs(
f - fPrev );
247 *( fData++ ) = fPrev =
f;
248 *( phiData++ ) = phi +
phi0;
#define ABORT(statusptr, code, mesg)
#define ENDFAIL(statusptr)
#define TRY(func, statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
#define BEGINFAIL(statusptr)
void LALSCreateVectorSequence(LALStatus *status, REAL4VectorSequence **vectorSequence, CreateVectorSequenceIn *vSeqParams)
#define GENERATETAYLORCWH_EOUT
Output field a, f, phi, or shift already exists.
#define GENERATETAYLORCWH_ENUL
Unexpected null pointer in arguments.
#define GENERATETAYLORCWH_EMEM
Out of memory.
void LALGenerateTaylorCW(LALStatus *stat, PulsarCoherentGW *output, TaylorCWParamStruc *params)
Computes a Taylor-parametrized continuous waveform.
const LALUnit lalStrainUnit
const LALUnit lalHertzUnit
const LALUnit lalDimensionlessUnit
void LALDCreateVector(LALStatus *, REAL8Vector **, UINT4)
void LALDDestroyVector(LALStatus *, REAL8Vector **)
void LALSDestroyVector(LALStatus *, REAL4Vector **)
void LALSCreateVector(LALStatus *, REAL4Vector **, UINT4)
This structure stores a representation of a plane gravitational wave propagating from a particular po...
This structure stores the parameters for constructing a gravitational waveform with a Taylor-polynomi...