SPINspiral
SPINspiral is a parameter-estimation code for gravitational-wave signals detected by LIGO/Virgo
Functions
src/SPINspiral_signal.c File Reference

(SPINspiral version 0.5.1, revision 275)

Contains routines compute signal-related information, like likelihood, SNR, match, etc. More...

#include <SPINspiral.h>
Include dependency graph for SPINspiral_signal.c:

Functions

double netLogLikelihood (struct parSet *par, int networkSize, struct interferometer *ifo[], int waveformVersion, int injectionWF, struct runPar run)
 Compute the log(Likelihood) for a network of IFOs.
double IFOlogLikelihood (struct parSet *par, struct interferometer *ifo[], int ifonr, int waveformVersion, int injectionWF, struct runPar run)
 Compute the log(Likelihood) for a single IFO.
double signalToNoiseRatio (struct parSet *par, struct interferometer *ifo[], int ifonr, int waveformVersion, int injectionWF, struct runPar run)
 Compute the SNR of the waveform with a given parameter set for a single IFO.
double parMatch (struct parSet *par1, int waveformVersion1, int injectionWF1, struct parSet *par2, int waveformVersion2, int injectionWF2, struct interferometer *ifo[], int networkSize, struct runPar run)
 Compute match between waveforms with parameter sets par1 and par2.
double overlapWithData (struct parSet *par, struct interferometer *ifo[], int ifonr, int waveformVersion, int injectionWF, struct runPar run)
 Compute frequency-domain overlap of waveform of given parameters with raw data.
double parOverlap (struct parSet *par1, int waveformVersion1, int injectionWF1, struct parSet *par2, int waveformVersion2, int injectionWF2, struct interferometer *ifo[], int ifonr, struct runPar run)
 Compute the overlap in the frequency domain between two waveforms with parameter sets par1 and par2.
double vecOverlap (fftw_complex *vec1, fftw_complex *vec2, double *noise, int j_1, int j_2, double deltaFT)
 Compute the overlap in the frequency domain between two waveforms with parameter sets par1 and par2.
void signalFFT (fftw_complex *FFTout, struct parSet *par, struct interferometer *ifo[], int ifonr, int waveformVersion, int injectionWF, struct runPar run)
 Compute the FFT of a waveform with given parameter set.
double matchBetweenParameterArrayAndTrueParameters (double *pararray, struct interferometer *ifo[], struct MCMCvariables mcmc, struct runPar run)
 Compute the match between a given parameter array and the injection parameters.
double logLikelihood_nine (struct parSet *par, int waveformVersion, int injectionWF, struct runPar run)
 Compute a analytical log(Likelihood)

Detailed Description

Contains routines compute signal-related information, like likelihood, SNR, match, etc.


Function Documentation

double netLogLikelihood ( struct parSet par,
int  networkSize,
struct interferometer ifo[],
int  waveformVersion,
int  injectionWF,
struct runPar  run 
)

Compute the log(Likelihood) for a network of IFOs.

References IFOlogLikelihood(), and logLikelihood_nine().

Referenced by correlatedMCMCupdate(), MCMC(), startMCMCOffset(), uncorrelatedMCMCblockUpdate(), and uncorrelatedMCMCsingleUpdate().

double IFOlogLikelihood ( struct parSet par,
struct interferometer ifo[],
int  ifonr,
int  waveformVersion,
int  injectionWF,
struct runPar  run 
)

Compute the log(Likelihood) for a single IFO.

References vecOverlap(), and waveformTemplate().

Referenced by netLogLikelihood().

double signalToNoiseRatio ( struct parSet par,
struct interferometer ifo[],
int  ifonr,
int  waveformVersion,
int  injectionWF,
struct runPar  run 
)

Compute the SNR of the waveform with a given parameter set for a single IFO.

References vecOverlap(), and waveformTemplate().

Referenced by main().

double parMatch ( struct parSet par1,
int  waveformVersion1,
int  injectionWF1,
struct parSet par2,
int  waveformVersion2,
int  injectionWF2,
struct interferometer ifo[],
int  networkSize,
struct runPar  run 
)

Compute match between waveforms with parameter sets par1 and par2.

References signalFFT(), and vecOverlap().

Referenced by main(), and matchBetweenParameterArrayAndTrueParameters().

double overlapWithData ( struct parSet par,
struct interferometer ifo[],
int  ifonr,
int  waveformVersion,
int  injectionWF,
struct runPar  run 
)

Compute frequency-domain overlap of waveform of given parameters with raw data.

References signalFFT(), and vecOverlap().

double parOverlap ( struct parSet par1,
int  waveformVersion1,
int  injectionWF1,
struct parSet par2,
int  waveformVersion2,
int  injectionWF2,
struct interferometer ifo[],
int  ifonr,
struct runPar  run 
)

Compute the overlap in the frequency domain between two waveforms with parameter sets par1 and par2.

References signalFFT(), and vecOverlap().

Referenced by main().

double vecOverlap ( fftw_complex *  vec1,
fftw_complex *  vec2,
double *  noise,
int  j_1,
int  j_2,
double  deltaFT 
)

Compute the overlap in the frequency domain between two waveforms with parameter sets par1 and par2.

Referenced by IFOlogLikelihood(), overlapWithData(), parMatch(), parOverlap(), and signalToNoiseRatio().

void signalFFT ( fftw_complex *  FFTout,
struct parSet par,
struct interferometer ifo[],
int  ifonr,
int  waveformVersion,
int  injectionWF,
struct runPar  run 
)

Compute the FFT of a waveform with given parameter set.

References interferometer::FTsize, and waveformTemplate().

Referenced by overlapWithData(), parMatch(), and parOverlap().

double matchBetweenParameterArrayAndTrueParameters ( double *  pararray,
struct interferometer ifo[],
struct MCMCvariables  mcmc,
struct runPar  run 
)

Compute the match between a given parameter array and the injection parameters.

Todo:
Add support for two different waveform families

References allocParset(), freeParset(), getInjectionParameters(), MCMCvariables::injectionWaveform, MCMCvariables::injParVal, localPar(), MCMCvariables::mcmcWaveform, MCMCvariables::networkSize, MCMCvariables::nInjectPar, MCMCvariables::nMCMCpar, parSet::par, and parMatch().

double logLikelihood_nine ( struct parSet par,
int  waveformVersion,
int  injectionWF,
struct runPar  run 
)

Compute a analytical log(Likelihood)

References runPar::nMCMCpar, parSet::par, and runPar::parRevID.

Referenced by netLogLikelihood().

 All Data Structures Files Functions Variables Defines