48#include <lal/LALInspiralBank.h>
49#include <lal/LALStdio.h>
50#include <lal/AVFactories.h>
51#include <lal/SeqFactories.h>
76 UINT4 numPSDpts=65536;
85 fpr = fopen(
"MetricTest.out",
"w");
101 params.signalAmplitude=1.0;
114 samplingRate =
params.tSampling;
127 fprintf(fpr,
"#dP0=%e dP1=%e\n", sqrt (mismatch/metric.
G00), sqrt (mismatch/metric.
G11));
128 fprintf(fpr,
"#dp0=%e dp1=%e\n", sqrt (mismatch/metric.
g00), sqrt (mismatch/metric.
g11));
137 double d0=(dp0max-dp0min)/(
double)
n;
138 double d1=(dp1max-dp1min)/(
double)
n;
139 for ( dp0= dp0min; dp0<=dp0max+d0 ; dp0+=d0)
141 for ( dp1= dp1min; dp1<=dp1max+d1 ; dp1+=d1)
144 MM = 1. - (metric.
G00 * dp0 * dp0 + metric.
G01 * dp0 * dp1
145 + metric.
G01 * dp1 * dp0 + metric.
G11 * dp1 * dp1);
146 fprintf(fpr,
"%f %f %f\n", dp0, dp1, MM);
177 moments->
a01 = 3.L/5.L;
180 moments->
a31 = -3.L/2.L;
182 moments->
a42 = 5429.L/5376.L * pow ( 25.L *
LAL_PI/2.L, 1.L/3.L);
183 moments->
a43 = 1.5293365L/1.0838016L * pow(5.L/(4.L*pow(
LAL_PI,4.L)), 1.L/3.L);
199 in.
norm = moments->
j[7];
203 fprintf (stderr,
"a01=%e a21=%e a22=%e a31=%e a41=%e a42=%e a43=%e \n",
205 moments->
a41, moments->
a42, moments->
a43);
207 fprintf(stderr,
"j7=%e\n", moments->
j[7]);
212 for (k=1; k<=17; k++)
void LALInspiralParameterCalc(LALStatus *status, InspiralTemplate *params)
void LALCheckMemoryLeaks(void)
#define CHECKSTATUSPTR(statusptr)
#define ATTATCHSTATUSPTR(statusptr)
#define ASSERT(assertion, statusptr, code, mesg)
#define DETATCHSTATUSPTR(statusptr)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
static void GetInspiralMoments(LALStatus *status, InspiralMomentsEtc *moments, REAL8FrequencySeries *psd, InspiralTemplate *params)
void LALInspiralComputeBCVMetric(LALStatus *status, InspiralMetric *metric, REAL8FrequencySeries *shf, InspiralTemplate *params)
@ m1Andm2
component masses
#define LALINSPIRALBANKH_ENULL
Null pointer.
void LALInspiralMoments(LALStatus *status, REAL8 *moment, InspiralMomentsIn pars)
void LALInspiralComputeMetric(LALStatus *status, InspiralMetric *metric, InspiralTemplate *params, InspiralMomentsEtc *moments)
@ Tau0Tau3
space of chirptimes
void LALNoiseSpectralDensity(LALStatus *status, REAL8Vector *psd, void(*NoisePsd)(LALStatus *status, REAL8 *shf, REAL8 f), REAL8 df)
void LALLIGOIPsd(LALStatus UNUSED *status, REAL8 *psd, REAL8 f)
void LALDCreateVector(LALStatus *, REAL8Vector **, UINT4)
void LALDDestroyVector(LALStatus *, REAL8Vector **)
Structure to store metric at various points the signal manifold.
REAL8 g11
11-component of the diagonalised metric
CoordinateSpace space
The enum describing the coordinate space in which the metric is computed.
REAL8 G01
01-component of the metric in coordinates
REAL8 g00
00-component of the diagonalised metric
REAL8 theta
Angle from tau0 to semi-major axis of the ellipse.
REAL8 G00
00-component of the metric in coordinates
REAL8 G11
11-component of the metric in coordinates
Parameter structure that holds the moments of the PSD and other useful constants required in the comp...
REAL8 j[18]
The required moments are all computed once and stored in this array; The required moments are from J(...
Inputs to the function that computes the moments of the PSD.
REAL8FrequencySeries * shf
the frequency series containing the noise psd
REAL8 norm
norm to be used in computing the moment, the returned value is the above integral divided by the norm
REAL8 ndx
index (without the negative sign) in the moment integral as above
REAL8 xmax
upper limit of the integral
REAL8 xmin
lower limit of the integral
The inspiral waveform parameter structure containing information about the waveform to be generated.