Skip to content
Snippets Groups Projects

single IFO bug fix

Merged Tyson Littenberg requested to merge tyson-littenberg/bayeswave:O3_dev into master
1 file
+ 10
3
Compare changes
  • Side-by-side
  • Inline
+ 10
3
@@ -930,7 +930,7 @@ double EvaluateExtrinsicConstantLogLikelihood(UNUSED struct Network *projection,
double EvaluateExtrinsicMarkovianLogLikelihood(struct Network *projection, double *params, double **invSnf, double *Sn, struct Wavelet **geo, double **g, struct Data *data, double fmin, double fmax)
{
int i, n;
int NI,N;
int NI,NP,N;
int ifo;
int imin,imax;
@@ -942,13 +942,20 @@ double EvaluateExtrinsicMarkovianLogLikelihood(struct Network *projection, doubl
NI = data->NI;
N = data->N;
NP = data->Npol;
/*
if Npol = 1 assume elliptical polarization, but still need room for hx
*/
if(NP<2) NP = 2;
//imin = data->imin;
//imax = data->imax;
imin = (int)(fmin*data->Tobs);
imax = (int)(fmax*data->Tobs);
d = data->s;
t = dmatrix(0,NI-1,0,N-1); //template
t = dmatrix(0,NP-1,0,N-1); //template
h = dmatrix(0,NI-1,0,N-1); //response
r = dmatrix(0,NI-1,0,N-1); //residual
@@ -977,7 +984,7 @@ double EvaluateExtrinsicMarkovianLogLikelihood(struct Network *projection, doubl
free_dmatrix(h,0,NI-1,0,N-1);
free_dmatrix(r,0,NI-1,0,N-1);
free_dmatrix(t,0,NI-1,0,N-1);
free_dmatrix(t,0,NP-1,0,N-1);
return logL;
}
Loading