Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALPulsar 7.1.1.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
upperlimits.h File Reference

Prototypes

UpperLimitVectorcreateUpperLimitVector (const UINT4 length)
 Allocate a new UpperLimitVector. More...
 
UpperLimitVectorresizeUpperLimitVector (UpperLimitVector *vector, const UINT4 length)
 Resize an UpperLimitVector. More...
 
void resetUpperLimitStruct (UpperLimit *ul)
 Reset an UpperLimitStruct. More...
 
void destroyUpperLimitVector (UpperLimitVector *vector)
 Free an UpperLimitVector. More...
 
void destroyUpperLimitStruct (UpperLimit *ul)
 Free an UpperLimit structure. More...
 
INT4 skypoint95UL (UpperLimit *ul, const UserInput_t *params, const ffdataStruct *ffdata, const ihsMaximaStruct *ihsmaxima, const ihsfarStruct *ihsfar, const REAL4VectorAligned *fbinavgs)
 Determine the 95% confidence level upper limit at a particular sky location from the loudest IHS value. More...
 
REAL8 gsl_ncx2cdf_solver (const REAL8 x, void *p)
 
REAL8 gsl_ncx2cdf_float_solver (const REAL8 x, void *p)
 
REAL8 gsl_ncx2cdf_withouttinyprob_solver (const REAL8 x, void *p)
 
REAL8 gsl_ncx2cdf_float_withouttinyprob_solver (const REAL8 x, void *p)
 
REAL8 ncx2cdf_withouttinyprob_withmatlabchi2cdf_solver (const REAL8 x, void *p)
 
REAL8 ncx2cdf_float_withouttinyprob_withmatlabchi2cdf_solver (const REAL8 x, void *p)
 
INT4 outputUpperLimitToFile (const CHAR *outputfile, const UpperLimit ul, const BOOLEAN printAllULvalues)
 Output the highest upper limit to a file unless printAllULvalues==1 in which case, all UL values are printed to a file. More...
 

Go to the source code of this file.

Data Structures

struct  ncx2cdf_solver_params
 

Function Documentation

◆ createUpperLimitVector()

UpperLimitVector * createUpperLimitVector ( const UINT4  length)

Allocate a new UpperLimitVector.

Parameters
[in]lengthLength of the vector
Returns
Pointer to newly allocated UpperLimitVector

Definition at line 32 of file upperlimits.c.

◆ resizeUpperLimitVector()

UpperLimitVector * resizeUpperLimitVector ( UpperLimitVector vector,
const UINT4  length 
)

Resize an UpperLimitVector.

Parameters
[in,out]vectorPointer to UpperLimitVector to resize
[in]lengthNew length of the vector
Returns
Pointer to reallocated UpperLimitVector

Definition at line 59 of file upperlimits.c.

◆ resetUpperLimitStruct()

void resetUpperLimitStruct ( UpperLimit ul)

Reset an UpperLimitStruct.

Parameters
[in]ulPointer to an UpperLimit structure

Definition at line 111 of file upperlimits.c.

◆ destroyUpperLimitVector()

void destroyUpperLimitVector ( UpperLimitVector vector)

Free an UpperLimitVector.

Parameters
[in]vectorPointer to an UpperLimitVector

Definition at line 87 of file upperlimits.c.

◆ destroyUpperLimitStruct()

void destroyUpperLimitStruct ( UpperLimit ul)

Free an UpperLimit structure.

Parameters
[in]ulPointer to an UpperLimit structure

Definition at line 125 of file upperlimits.c.

◆ skypoint95UL()

INT4 skypoint95UL ( UpperLimit ul,
const UserInput_t params,
const ffdataStruct ffdata,
const ihsMaximaStruct ihsmaxima,
const ihsfarStruct ihsfar,
const REAL4VectorAligned fbinavgs 
)

Determine the 95% confidence level upper limit at a particular sky location from the loudest IHS value.

Parameters
[out]ulPointer to an UpperLimit struct
[in]paramsPointer to UserInput_t
[in]ffdataPointer to ffdataStruct
[in]ihsmaximaPointer to an ihsMaximaStruct
[in]ihsfarPointer to an ihsfarStruct
[in]fbinavgsPointer to a REAL4VectorAligned of the 2nd FFT background powers
Returns
Status value

Definition at line 155 of file upperlimits.c.

◆ gsl_ncx2cdf_solver()

REAL8 gsl_ncx2cdf_solver ( const REAL8  x,
void *  p 
)

Definition at line 286 of file upperlimits.c.

◆ gsl_ncx2cdf_float_solver()

REAL8 gsl_ncx2cdf_float_solver ( const REAL8  x,
void *  p 
)

Definition at line 298 of file upperlimits.c.

◆ gsl_ncx2cdf_withouttinyprob_solver()

REAL8 gsl_ncx2cdf_withouttinyprob_solver ( const REAL8  x,
void *  p 
)

Definition at line 310 of file upperlimits.c.

◆ gsl_ncx2cdf_float_withouttinyprob_solver()

REAL8 gsl_ncx2cdf_float_withouttinyprob_solver ( const REAL8  x,
void *  p 
)

Definition at line 322 of file upperlimits.c.

◆ ncx2cdf_withouttinyprob_withmatlabchi2cdf_solver()

REAL8 ncx2cdf_withouttinyprob_withmatlabchi2cdf_solver ( const REAL8  x,
void *  p 
)

Definition at line 334 of file upperlimits.c.

◆ ncx2cdf_float_withouttinyprob_withmatlabchi2cdf_solver()

REAL8 ncx2cdf_float_withouttinyprob_withmatlabchi2cdf_solver ( const REAL8  x,
void *  p 
)

Definition at line 346 of file upperlimits.c.

◆ outputUpperLimitToFile()

INT4 outputUpperLimitToFile ( const CHAR outputfile,
const UpperLimit  ul,
const BOOLEAN  printAllULvalues 
)

Output the highest upper limit to a file unless printAllULvalues==1 in which case, all UL values are printed to a file.

Parameters
[in]outputfileString of the filename
[in]ulUpperLimit structure to print to file
[in]printAllULvaluesOption flag to print all UL values from a sky location (1) or only the largest (0)
Returns
Status value

Definition at line 364 of file upperlimits.c.