31#include <lal/LALDatatypes.h>
32#include <lal/ComplexFFT.h>
33#include <lal/LALInspiral.h>
34#include <lal/LALInspiralBank.h>
35#include <lal/GeneratePPNInspiral.h>
36#include <lal/LALConfig.h>
37#include <lal/LALStdio.h>
38#include <lal/LALStdlib.h>
39#include <lal/LALError.h>
40#include <lal/LALDatatypes.h>
41#include <lal/AVFactories.h>
42#include <lal/NRWaveIO.h>
43#include <lal/NRWaveInject.h>
44#include <lal/FileIO.h>
46#include <lal/FrequencySeries.h>
47#include <lal/TimeSeries.h>
48#include <lal/TimeFreqFFT.h>
49#include <lal/VectorOps.h>
50#include <lal/LALDetectors.h>
51#include <lal/ComplexFFT.h>
58typedef struct tagPhenomCoeffs{
92typedef struct tagPhenomParams{
173 out = sigma / (2 *
LAL_PI * ((freq - fRing)*(freq - fRing)
174 + sigma*sigma / 4.0));
192 REAL8 f, psi0, psi2, psi3, psi4, psi6, psi7;
193 REAL8 softfLow, softfCut;
209 epoch.gpsSeconds = 0;
210 epoch.gpsNanoSeconds = 0;
220 softfLow = fLow - 3.5;
221 softfCut =
params->fCut + 3.5;
225 for( k = 0 ; k <
n ; k++ ) {
227 if ( f <= softfLow || f > softfCut ) {
236 Phieff->
data->
data[k] = psi0 * pow(f*piM , -5./3.) +
237 psi2 * pow(f*piM , -3./3.) +
238 psi3 * pow(f*piM , -2./3.) +
239 psi4 * pow(f*piM , -1./3.) +
240 psi6 * pow(f*piM , 1./3.) +
241 psi7 * pow(f*piM , 2./3.);
263 REAL8 f, fNorm, fMerg, fRing, fCut, sigma;
264 REAL8 softfLow, softfCut, softFact;
279 cConst *= pow(5.*eta/24., 1./2.);
282 epoch.gpsSeconds = 0;
283 epoch.gpsNanoSeconds = 0;
295 softfLow = fLow - 3.5;
296 softfCut = fCut + 3.5;
299 for( k = 0 ; k <
n ; k++ ) {
302 softFact = (1+tanh(sharpNess*(f-fLow)))*(1-tanh(sharpNess*(f-fCut)))/4.;
304 if ( f <= softfLow || f > softfCut ) {
307 else if ( f > softfLow && f <= fMerg ) {
308 Aeff->
data->
data[k] = pow (fNorm, -7./6.);
311 else if ( f > fMerg && f <= fRing ) {
312 Aeff->
data->
data[k] = pow (fNorm, -2./3.);
315 else if ( f > fRing && f <= softfCut ) {
REAL4FrequencySeries * XLALCreateREAL4FrequencySeries(const CHAR *name, const LIGOTimeGPS *epoch, REAL8 f0, REAL8 deltaF, const LALUnit *sampleUnits, size_t length)
const LALUnit lalDimensionlessUnit