LALPulsar  6.1.0.1-fe68b98
FstatisticTools.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2017 Maximillian Bensch, Reinhard Prix
3 // Copyright (C) 2014 Reinhard Prix
4 // Copyright (C) 2012, 2013, 2014 David Keitel, Bernd Machenschalk, Reinhard Prix, Karl Wette
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with with program; see the file COPYING. If not, write to the
18 // Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 // MA 02110-1301 USA
20 //
21 
22 #ifndef _FSTATISTICTOOLS_H
23 #define _FSTATISTICTOOLS_H
24 
25 #include <lal/LALStdlib.h>
26 #include <lal/PulsarDataTypes.h>
27 #include <lal/LALComputeAM.h>
28 #include <lal/LALComputeAM.h>
29 #include <lal/SSBtimes.h>
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 ///
36 /// \defgroup FstatisticTools_h Header FstatisticTools.h
37 /// \ingroup lalpulsar_coh
38 /// \authors Reinhard Prix
39 ///
40 /// \brief Functions to estimate amplitude parameters and convert between different parametrizations.
41 ///
42 
43 /// @{
44 
45 // ---------- API function prototypes ----------
46 int XLALEstimatePulsarAmplitudeParams( PulsarCandidate *pulsarParams, const LIGOTimeGPS *FaFb_refTime,
47  const COMPLEX8 Fa, const COMPLEX8 Fb, const AntennaPatternMatrix *Mmunu );
48 
51 
53 
54 /// @}
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif // _FSTATISTICTOOLS_H
int XLALEstimatePulsarAmplitudeParams(PulsarCandidate *pulsarParams, const LIGOTimeGPS *FaFb_refTime, const COMPLEX8 Fa, const COMPLEX8 Fb, const AntennaPatternMatrix *Mmunu)
Estimate the amplitude parameters of a pulsar CW signal, given its phase parameters,...
int XLALAmplitudeParams2Vect(PulsarAmplitudeVect A_Mu, const PulsarAmplitudeParams Amp)
Convert amplitude params from 'physical' coordinates into 'canonical' coordinates .
REAL8 XLALComputeOptimalSNR2FromMmunu(const PulsarAmplitudeParams pap, const AntennaPatternMatrix Mmunu)
Calculates the 'optimal' / perfect-match squared signal-to-noise ratio (SNR^2) for a CW signal for gi...
int XLALAmplitudeVect2Params(PulsarAmplitudeParams *Amp, const PulsarAmplitudeVect A_Mu)
Compute amplitude params from amplitude-vector .
double REAL8
float complex COMPLEX8
REAL8 PulsarAmplitudeVect[4]
Struct for 'canonical' coordinates in amplitude-params space A^mu = {A1, A2, A3, A4}.
Struct holding the "antenna-pattern" matrix , in terms of the multi-detector scalar product.
Definition: LALComputeAM.h:127
Type containing the JKS 'amplitude parameters' {h0, cosi, phi0, psi}.
Type containing a "candidate": parameter-space point with estimated errors and Fstat-value/significan...