Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
LALInference.c File Reference

Prototypes

static void * new_elem (const char *name, LALInferenceVariableItem *itemPtr)
 
static void del_elem (void *elem)
 
static UINT8 LALInferenceElemHash (const void *elem)
 
static int LALInferenceElemCmp (const void *elem1, const void *elem2)
 
LALInferenceThreadStateLALInferenceInitThread (LALInferenceThreadState *thread)
 Structure to contain data-related Reduced Order Quadrature quantities. More...
 
LALInferenceThreadStateLALInferenceInitThreads (INT4 nthreads)
 
static charcolNameToParamName (const char *colName)
 
static INT4 checkREAL8TimeSeries (REAL8TimeSeries *series)
 
static INT4 checkREAL8FrequencySeries (REAL8FrequencySeries *series)
 
static INT4 checkCOMPLEX16FrequencySeries (COMPLEX16FrequencySeries *series)
 
static INT4 matrix_equal (gsl_matrix *a, gsl_matrix *b)
 
static LALInferenceVariableItemLALInferenceGetItemSlow (const LALInferenceVariables *vars, const char *name)
 
LALInferenceVariableItemLALInferenceGetItem (const LALInferenceVariables *vars, const char *name)
 Return the list node for "name" - do not rely on this. More...
 
LALInferenceVariableItemLALInferenceGetItemNr (LALInferenceVariables *vars, int idx)
 Return the list node for the idx-th item - do not rely on this Indexing starts at 1. More...
 
LALInferenceParamVaryType LALInferenceGetVariableVaryType (LALInferenceVariables *vars, const char *name)
 Get the LALInferenceParamVaryType of the parameter named name in vars see the declaration of LALInferenceParamVaryType for possibilities. More...
 
void LALInferenceSetParamVaryType (LALInferenceVariables *vars, const char *name, LALInferenceParamVaryType vary)
 Set the LALInferenceParamVaryType of the parameter named name in vars, see the declaration of LALInferenceParamVaryType for possibilities. More...
 
void * LALInferenceGetVariable (const LALInferenceVariables *vars, const char *name)
 Return a pointer to the memory the variable vars is stored in specified by name User must cast this pointer to the expected type before dereferencing it to get the value of the variable. More...
 
INT4 LALInferenceGetVariableDimension (LALInferenceVariables *vars)
 Get number of dimensions in variable vars. More...
 
INT4 LALInferenceGetVariableDimensionNonFixed (LALInferenceVariables *vars)
 Get number of dimensions in vars which are not fixed to a certain value. More...
 
INT4 LALInferenceGetVariableDimensionNonFixedChooseVectors (LALInferenceVariables *vars, INT4 count_vectors)
 Get number of dimensions in vars which are not fixed to a certain value, with a flag for skipping counting vectors. More...
 
LALInferenceVariableType LALInferenceGetVariableType (const LALInferenceVariables *vars, const char *name)
 Get the LALInferenceVariableType of the parameter named name in vars. More...
 
INT4 LALInferenceGetVariableTypeByIndex (LALInferenceVariables *vars, int idx)
 Get the LALInferenceVariableType of the idx -th item in the vars Indexing starts at 1. More...
 
charLALInferenceGetVariableName (LALInferenceVariables *vars, int idx)
 Get the name of the idx-th variable Indexing starts at 1. More...
 
void LALInferenceSetVariable (LALInferenceVariables *vars, const char *name, const void *value)
 Set a variable named name in vars with a value. More...
 
void LALInferenceAddVariable (LALInferenceVariables *vars, const char *name, const void *value, LALInferenceVariableType type, LALInferenceParamVaryType vary)
 Add a variable named name to vars with initial value referenced by value. More...
 
void LALInferenceRemoveVariable (LALInferenceVariables *vars, const char *name)
 Remove name from vars Frees the memory for the name structure and its contents. More...
 
int LALInferenceCheckVariableNonFixed (LALInferenceVariables *vars, const char *name)
 Checks for name being present in vars and having type LINEAR or CIRCULAR. More...
 
int LALInferenceCheckVariableToPrint (LALInferenceVariables *vars, const char *name)
 
int LALInferenceCheckVariable (LALInferenceVariables *vars, const char *name)
 Checks for name being present in vars returns 1(==true) or 0. More...
 
void LALInferenceClearVariables (LALInferenceVariables *vars)
 Delete the variables in this structure. More...
 
void LALInferenceCopyVariables (LALInferenceVariables *origin, LALInferenceVariables *target)
 Deep copy the variables from one to another LALInferenceVariables structure. More...
 
void LALInferenceCopyUnsetREAL8Variables (LALInferenceVariables *origin, LALInferenceVariables *target, ProcessParamsTable *commandLine)
 
UINT4 LALInferencePrintNVariableItem (char *out, UINT4 strsize, const LALInferenceVariableItem *const ptr)
 Prints a variable item to a string (must be pre-allocated!) Returns the number of bytes necessary to store the output. More...
 
void LALInferencePrintVariables (LALInferenceVariables *var)
 output contents of a 'LALInferenceVariables' structure * / / * (by now only prints names and types, but no values) More...
 
void LALInferencePrintSample (FILE *fp, LALInferenceVariables *sample)
 Output the sample to file *fp, in ASCII format. More...
 
void LALInferencePrintSampleNonFixed (FILE *fp, LALInferenceVariables *sample)
 Output only non-fixed parameters. More...
 
void LALInferenceReadSampleNonFixed (FILE *fp, LALInferenceVariables *p)
 Read in the non-fixed parameters from the given file (position in the file must be arranged properly before calling this function). More...
 
REAL8LALInferenceParseDelimitedAscii (FILE *input, INT4 nCols, INT4 *wantedCols, INT4 *nLines)
 Utility for readling in delimited ASCII files. More...
 
void parseLine (char *record, const char *delim, char arr[][VARNAME_MAX], INT4 *cnt)
 Parse a single line of delimited ASCII. More...
 
void LALInferenceDiscardPTMCMCHeader (FILE *filestream)
 Discard the standard header of a PTMCMC chain file. More...
 
void LALInferenceBurninPTMCMC (FILE *filestream, INT4 logl_idx, INT4 nPar)
 Determine burnin cycle from delta-logl criteria. More...
 
void LALInferenceBurninStream (FILE *filestream, INT4 burnin)
 Burn-in a generic ASCII stream. More...
 
void LALInferenceReadAsciiHeader (FILE *input, char params[][VARNAME_MAX], INT4 *nCols)
 Read column names from an ASCII file. More...
 
REAL8 ** LALInferenceSelectColsFromArray (REAL8 **inarray, INT4 nRows, INT4 nCols, INT4 nSelCols, INT4 *selCols)
 Utility for selecting columns from an array, in the specified order. More...
 
int LALInferencePrintProposalStatsHeader (FILE *fp, LALInferenceProposalCycle *cycle)
 Output proposal statistics header to file *fp. More...
 
void LALInferencePrintProposalStats (FILE *fp, LALInferenceProposalCycle *cycle)
 Output proposal statistics to file *fp. More...
 
const charLALInferenceTranslateInternalToExternalParamName (const char *inName)
 Converts between internally used parameter names and those external (e.g. More...
 
void LALInferenceTranslateExternalToInternalParamName (char *outName, const char *inName)
 Converts between externally used parameter names and those internal. More...
 
int LALInferenceFprintParameterHeaders (FILE *out, LALInferenceVariables *params)
 Print the parameter names to a file as a tab-separated ASCII line. More...
 
int LALInferenceFprintParameterNonFixedHeaders (FILE *out, LALInferenceVariables *params)
 Print the parameters which do not vary to a file as a tab-separated ASCII line. More...
 
INT4 LALInferenceFprintParameterNonFixedHeadersWithSuffix (FILE *out, LALInferenceVariables *params, const char *suffix)
 Print the parameters which do not vary to a file as a tab-separated ASCII line, adding the given suffix. More...
 
int LALInferenceCompareVariables (LALInferenceVariables *var1, LALInferenceVariables *var2)
 Check for equality in two variables. More...
 
INT4 LALInferenceThinnedBufferToArray (LALInferenceThreadState *thread, REAL8 **DEarray, INT4 step)
 LALInferenceVariable buffer to array and vica versa. More...
 
INT4 LALInferenceBufferToArray (LALInferenceThreadState *thread, REAL8 **DEarray)
 
void LALInferenceCopyVariablesToArray (LALInferenceVariables *origin, REAL8 *target)
 LALInference variables to an array, and vica versa. More...
 
void LALInferenceCopyArrayToVariables (REAL8 *origin, LALInferenceVariables *target)
 
ProcessParamsTableLALInferenceGetProcParamVal (ProcessParamsTable *procparams, const char *name)
 Returns the element of the process params table with "name". More...
 
void LALInferenceParseCharacterOptionString (char *input, char **strings[], UINT4 *n)
 parses a character string (passed as one of the options) and decomposes it into individual parameter character strings. More...
 
ProcessParamsTableLALInferenceParseCommandLine (int argc, char *argv[])
 
ProcessParamsTableLALInferenceParseStringVector (LALStringVector *arglist)
 Return a ProcessParamsTrable from a string vector. More...
 
ProcessParamsTableLALInferenceParseCommandLineStringVector (LALStringVector *args)
 Return a ProcessParamsTable from the command line arguments (SWIG version) More...
 
charLALInferencePrintCommandLine (ProcessParamsTable *procparams)
 Output the command line based on the ProcessParamsTable procparams. More...
 
void LALInferenceExecuteFT (LALInferenceModel *model)
 Execute FFT for data in IFOdata. More...
 
void LALInferenceExecuteInvFT (LALInferenceModel *model)
 Execute Inverse FFT for data in IFOdata. More...
 
void LALInferenceProcessParamLine (FILE *inp, char **headers, LALInferenceVariables *vars)
 Reads one line from the given file and stores the values there into the variable structure, using the given header array to name the columns. More...
 
char ** LALInferenceGetHeaderLine (FILE *inp)
 Returns an array of header strings (terminated by NULL) from a common-format output file. More...
 
LALInferenceVariableItemLALInferencePopVariableItem (LALInferenceVariables *vars, const char *name)
 Pop the list node for "name". More...
 
void LALInferenceSortVariablesByName (LALInferenceVariables *vars)
 Sorts the variable structure by name. More...
 
void LALInferenceLogSampleToFile (LALInferenceVariables *algorithmParams, LALInferenceVariables *vars)
 Append the sample to a file. More...
 
void LALInferenceLogSampleToArray (LALInferenceVariables *algorithmParams, LALInferenceVariables *vars)
 Append the sample to an array which can be later processed by the user. More...
 
void LALInferenceMcEta2Masses (double mc, double eta, double *m1, double *m2)
 Convert from Mc, eta space to m1, m2 space (note m1 > m2). More...
 
void LALInferenceMcQ2Masses (double mc, double q, double *m1, double *m2)
 Convert from Mc, q space to m1, m2 space (q = m2/m1, with m1 > m2). More...
 
void LALInferenceQ2Eta (double q, double *eta)
 Convert from q to eta (q = m2/m1, with m1 > m2). More...
 
void LALInferencedQuadMonSdQuadMonA (REAL8 dQuadMonS, REAL8 dQuadMonA, REAL8 *dQuadMon1, REAL8 *dQuadMon2)
 Convert from dQuadMonS, dQuadMonA to dQuadMon1, dQuadMon2. More...
 
void LALInferenceLambdaTsEta2Lambdas (REAL8 lambdaT, REAL8 dLambdaT, REAL8 eta, REAL8 *lambda1, REAL8 *lambda2)
 Convert from lambdaT, dLambdaT, and eta to lambda1 and lambda2. More...
 
void LALInferenceLogp1GammasMasses2Lambdas (REAL8 logp1, REAL8 gamma1, REAL8 gamma2, REAL8 gamma3, REAL8 mass1, REAL8 mass2, REAL8 *lambda1, REAL8 *lambda2)
 Calculate lambda1,2(m1,2|eos(logp1,gamma1,gamma2,gamma3)) More...
 
void LALInferenceSDGammasMasses2Lambdas (REAL8 gamma[], REAL8 mass1, REAL8 mass2, REAL8 *lambda1, REAL8 *lambda2, int size)
 Convert from spectral parameters to lambda1, lambda2. More...
 
int LALInferenceEOSPhysicalCheck (LALInferenceVariables *params, ProcessParamsTable *commandLine)
 Check for causality violation and mass conflict given masses and eos. More...
 
int LALInferenceSDGammaCheck (double gamma[], int size)
 Determine if the Adiabatic index is within 'prior' range. More...
 
double AdiabaticIndex (double gamma[], double x, int size)
 Specral decomposition of eos's adiabatic index. More...
 
static void deleteCell (LALInferenceKDTree *cell)
 
void LALInferenceKDTreeDelete (LALInferenceKDTree *tree)
 Delete a kD-tree. More...
 
static LALInferenceKDTreenewCell (size_t ndim, REAL8 *lowerLeft, REAL8 *upperRight, size_t level, cellType type)
 
LALInferenceKDTreeLALInferenceKDEmpty (REAL8 *lowerLeft, REAL8 *upperRight, size_t ndim)
 Constructs a fresh, empty kD tree. More...
 
static int equalPoints (REAL8 *a, REAL8 *b, size_t n)
 
static int cellAllEqualPoints (LALInferenceKDTree *cell)
 
static void addPtToCellPts (LALInferenceKDTree *cell, REAL8 *pt)
 
static int insertIntoCell (LALInferenceKDTree *cell, REAL8 *pt, size_t level)
 
static int inBounds (REAL8 *pt, REAL8 *low, REAL8 *high, size_t n)
 
static void computeMean (LALInferenceKDTree *cell)
 
static void computeCovariance (LALInferenceKDTree *cell)
 
static void computeEigenVectorsCleanup (gsl_matrix *A, gsl_matrix *evects, gsl_vector *evals, gsl_eigen_symmv_workspace *ws)
 
static void computeEigenVectors (LALInferenceKDTree *cell)
 
static void toEigenFrame (size_t dim, REAL8 **eigenvs, REAL8 *x, REAL8 *xe)
 
static void fromEigenFrame (size_t dim, REAL8 **eigenvs, REAL8 *xe, REAL8 *x)
 
static void computeEigenMinMax (LALInferenceKDTree *cell)
 
static void updateEigenSystem (LALInferenceKDTree *cell)
 
int LALInferenceKDAddPoint (LALInferenceKDTree *tree, REAL8 *pt)
 Adds a point to the kD-tree, returns 0 on successful exit. More...
 
static LALInferenceKDTreedoFindCell (LALInferenceKDTree *cell, REAL8 *pt, size_t dim, size_t Npts, size_t level)
 
LALInferenceKDTreeLALInferenceKDFindCell (LALInferenceKDTree *tree, REAL8 *pt, size_t Npts)
 Returns the first cell that contains the given point that also contains fewer than Npts points, if possible. More...
 
double LALInferenceKDLogCellVolume (LALInferenceKDTree *cell)
 Returns the log of the volume of the given cell, which is part of the given tree. More...
 
double LALInferenceKDLogCellEigenVolume (LALInferenceKDTree *cell)
 Returns the log of the volume of the box aligned with the principal axes of the points in the given cell that tightly encloses those points. More...
 
void LALInferenceKDVariablesToREAL8 (LALInferenceVariables *params, REAL8 *pt, LALInferenceVariables *templt)
 Fills in the given REAL8 array with the parameter values from params; the ordering of the variables is taken from the order of the non-fixed variables in templt. More...
 
void LALInferenceKDREAL8ToVariables (LALInferenceVariables *params, REAL8 *pt, LALInferenceVariables *templt)
 Fills in the non-fixed variables in params from the given REAL8 array. More...
 
void LALInferenceKDDrawEigenFrame (gsl_rng *rng, LALInferenceKDTree *tree, REAL8 *pt, size_t Npts)
 Draws a pt uniformly from a randomly chosen cell of tree. More...
 
static int inEigenBox (LALInferenceKDTree *cell, REAL8 *pt)
 
REAL8 LALInferenceKDLogProposalRatio (LALInferenceKDTree *tree, REAL8 *current, REAL8 *proposed, size_t Npts)
 Returns the log of the jump proposal probability ratio for the LALInferenceKDDrawEigenFrame() proposal to propose the point proposed given the current position current , where Npts is the parameter used to select the box to draw from in LALInferenceKDDrawEigenFrame(). More...
 
UINT4 LALInferenceCheckPositiveDefinite (gsl_matrix *matrix, UINT4 dim)
 Check matrix is positive definite. More...
 
void XLALMultiNormalDeviates (REAL4Vector *vector, gsl_matrix *matrix, UINT4 dim, RandomParams *randParam)
 Draw a random multivariate vector from Gaussian distr given covariance matrix. More...
 
void XLALMultiStudentDeviates (REAL4Vector *vector, gsl_matrix *matrix, UINT4 dim, UINT4 n, RandomParams *randParam)
 Draw a random multivariate vector from student-t distr given covariance matrix. More...
 
REAL8 LALInferenceAngularDistance (REAL8 a1, REAL8 a2)
 Calculate shortest angular distance between a1 and a2 (modulo 2PI) More...
 
REAL8 LALInferenceAngularVariance (LALInferenceVariables **list, const char *pname, int N)
 Calculate the variance of a distribution on an angle (modulo 2PI) More...
 
INT4 LALInferenceSanityCheck (LALInferenceRunState *state)
 Sanity check the structures in the given state. More...
 
static INT4 checkREAL8Value (REAL8 val)
 
void LALInferenceDumpWaveforms (LALInferenceModel *model, const char *basefilename)
 Dump all waveforms from the ifodata structure. More...
 
static void REAL8Vector_fwrite (FILE *f, REAL8Vector *vec)
 
static void COMPLEX16Vector_fwrite (FILE *f, COMPLEX16Vector *vec)
 
static void INT4Vector_fwrite (FILE *f, INT4Vector *vec)
 
static void UINT4Vector_fwrite (FILE *f, UINT4Vector *vec)
 
static REAL8VectorREAL8Vector_fread (FILE *f)
 
static COMPLEX16VectorCOMPLEX16Vector_fread (FILE *f)
 
static INT4VectorINT4Vector_fread (FILE *f)
 
static UINT4VectorUINT4Vector_fread (FILE *f)
 
int LALInferenceWriteVariablesBinary (FILE *file, LALInferenceVariables *vars)
 Write a LALInferenceVariables as binary to a given FILE pointer, returns the number of items written (should be the dimension of the variables) or -1 on error. More...
 
LALInferenceVariablesLALInferenceReadVariablesBinary (FILE *stream)
 Read from the given FILE * a LALInferenceVariables, which was previously written with LALInferenceWriteVariablesBinary() Returns a new LALInferenceVariables. More...
 
int LALInferenceWriteVariablesArrayBinary (FILE *file, LALInferenceVariables **vars, UINT4 N)
 Write an array N of LALInferenceVariables to the given FILE * using LALInferenceWriteVariablesBinary(). More...
 
int LALInferenceReadVariablesArrayBinary (FILE *file, LALInferenceVariables **vars, UINT4 N)
 Read N LALInferenceVariables from the binary FILE *file, previously written with LALInferenceWriteVariablesArrayBinary() returns the number read. More...
 
int LALInferenceWriteRunStateBinary (FILE *file, LALInferenceRunState *runState)
 Write the LALInferenceVariables contents of runState to a file in binary format. More...
 
int LALInferenceReadRunStateBinary (FILE *file, LALInferenceRunState *runState)
 Reads the file and populates LALInferenceVariables in the runState that were saved with LALInferenceReadVariablesArrayBinary() More...
 
void LALInferenceAddINT4Variable (LALInferenceVariables *vars, const char *name, INT4 value, LALInferenceParamVaryType vary)
 
INT4 LALInferenceGetINT4Variable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetINT4Variable (LALInferenceVariables *vars, const char *name, INT4 value)
 
void LALInferenceAddINT8Variable (LALInferenceVariables *vars, const char *name, INT8 value, LALInferenceParamVaryType vary)
 
INT8 LALInferenceGetINT8Variable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetINT8Variable (LALInferenceVariables *vars, const char *name, INT8 value)
 
void LALInferenceAddUINT4Variable (LALInferenceVariables *vars, const char *name, UINT4 value, LALInferenceParamVaryType vary)
 
UINT4 LALInferenceGetUINT4Variable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetUINT4Variable (LALInferenceVariables *vars, const char *name, UINT4 value)
 
void LALInferenceAddREAL4Variable (LALInferenceVariables *vars, const char *name, REAL4 value, LALInferenceParamVaryType vary)
 
REAL4 LALInferenceGetREAL4Variable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetREAL4Variable (LALInferenceVariables *vars, const char *name, REAL4 value)
 
void LALInferenceAddREAL8Variable (LALInferenceVariables *vars, const char *name, REAL8 value, LALInferenceParamVaryType vary)
 
REAL8 LALInferenceGetREAL8Variable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetREAL8Variable (LALInferenceVariables *vars, const char *name, REAL8 value)
 
void LALInferenceAddCOMPLEX8Variable (LALInferenceVariables *vars, const char *name, COMPLEX8 value, LALInferenceParamVaryType vary)
 
COMPLEX8 LALInferenceGetCOMPLEX8Variable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetCOMPLEX8Variable (LALInferenceVariables *vars, const char *name, COMPLEX8 value)
 
void LALInferenceAddCOMPLEX16Variable (LALInferenceVariables *vars, const char *name, COMPLEX16 value, LALInferenceParamVaryType vary)
 
COMPLEX16 LALInferenceGetCOMPLEX16Variable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetCOMPLEX16Variable (LALInferenceVariables *vars, const char *name, COMPLEX16 value)
 
void LALInferenceAddgslMatrixVariable (LALInferenceVariables *vars, const char *name, gsl_matrix *value, LALInferenceParamVaryType vary)
 
gsl_matrix * LALInferenceGetgslMatrixVariable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetgslMatrixVariable (LALInferenceVariables *vars, const char *name, gsl_matrix *value)
 
void LALInferenceAddREAL8VectorVariable (LALInferenceVariables *vars, const char *name, REAL8Vector *value, LALInferenceParamVaryType vary)
 
REAL8VectorLALInferenceGetREAL8VectorVariable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetREAL8VectorVariable (LALInferenceVariables *vars, const char *name, REAL8Vector *value)
 
void LALInferenceAddCOMPLEX16VectorVariable (LALInferenceVariables *vars, const char *name, COMPLEX16Vector *value, LALInferenceParamVaryType vary)
 
COMPLEX16VectorLALInferenceGetCOMPLEX16VectorVariable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetCOMPLEX16VectorVariable (LALInferenceVariables *vars, const char *name, COMPLEX16Vector *value)
 
void LALInferenceAddUINT4VectorVariable (LALInferenceVariables *vars, const char *name, UINT4Vector *value, LALInferenceParamVaryType vary)
 
void LALInferenceAddINT4VectorVariable (LALInferenceVariables *vars, const char *name, INT4Vector *value, LALInferenceParamVaryType vary)
 
UINT4VectorLALInferenceGetUINT4VectorVariable (LALInferenceVariables *vars, const char *name)
 
INT4VectorLALInferenceGetINT4VectorVariable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetUINT4VectorVariable (LALInferenceVariables *vars, const char *name, UINT4Vector *value)
 
void LALInferenceSetINT4VectorVariable (LALInferenceVariables *vars, const char *name, INT4Vector *value)
 
void LALInferenceAddMCMCrunphase_ptrVariable (LALInferenceVariables *vars, const char *name, LALInferenceMCMCRunPhase *value, LALInferenceParamVaryType vary)
 
LALInferenceMCMCRunPhaseLALInferenceGetMCMCrunphase_ptrVariable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetMCMCrunphase_ptrVariable (LALInferenceVariables *vars, const char *name, LALInferenceMCMCRunPhase *value)
 
void LALInferenceAddstringVariable (LALInferenceVariables *vars, const char *name, const CHAR *value, LALInferenceParamVaryType vary)
 
const CHARLALInferenceGetstringVariable (LALInferenceVariables *vars, const char *name)
 
void LALInferenceSetstringVariable (LALInferenceVariables *vars, const char *name, const CHAR *value)
 
int LALInferenceSplineCalibrationFactor (REAL8Vector *logfreqs, REAL8Vector *deltaAmps, REAL8Vector *deltaPhases, COMPLEX16FrequencySeries *calFactor)
 Computes the factor relating the physical waveform to a measured waveform for a spline-fit calibration model in amplitude and phase. More...
 
int LALInferenceSplineCalibrationFactorROQ (REAL8Vector *logfreqs, REAL8Vector *deltaAmps, REAL8Vector *deltaPhases, REAL8Sequence *freqNodesLin, COMPLEX16Sequence **calFactorROQLin, REAL8Sequence *freqNodesQuad, COMPLEX16Sequence **calFactorROQQuad)
 Modified version of LALInferenceSplineCalibrationFactor to compute the calibration factors for the specific frequency nodes used for Reduced Order Quadrature likelihoods. More...
 
void LALInferenceFprintSplineCalibrationHeader (FILE *output, LALInferenceThreadState *thread)
 Print spline calibration parameter names as tab-separated ASCII. More...
 
void LALInferencePrintSplineCalibration (FILE *output, LALInferenceThreadState *thread)
 Output spline calibration parameters. More...
 
void LALInferenceBinaryLove (LALInferenceVariables *vars, REAL8 *lambda1, REAL8 *lambda2)
 Compute Tidal deformabilities following BinaryLove Universal relations. More...
 

Go to the source code of this file.

Data Structures

struct  hash_elem
 

Macros

#define COL_MAX   128
 
#define STR_MAX   2048
 

Enumerations

enum  cellType { LEFT , RIGHT , TOP }
 

Variables

size_t LALInferenceTypeSize []
 

Macro Definition Documentation

◆ COL_MAX

#define COL_MAX   128

Definition at line 50 of file LALInference.c.

◆ STR_MAX

#define STR_MAX   2048

Definition at line 51 of file LALInference.c.

Enumeration Type Documentation

◆ cellType

enum cellType
Enumerator
LEFT 
RIGHT 
TOP 

Definition at line 2672 of file LALInference.c.

Function Documentation

◆ new_elem()

static void * new_elem ( const char name,
LALInferenceVariableItem itemPtr 
)
static

Definition at line 59 of file LALInference.c.

◆ del_elem()

static void del_elem ( void *  elem)
static

Definition at line 65 of file LALInference.c.

◆ LALInferenceElemHash()

static UINT8 LALInferenceElemHash ( const void *  elem)
static

Definition at line 71 of file LALInference.c.

◆ LALInferenceElemCmp()

static int LALInferenceElemCmp ( const void *  elem1,
const void *  elem2 
)
static

Definition at line 79 of file LALInference.c.

◆ colNameToParamName()

char * colNameToParamName ( const char colName)
static

Definition at line 2139 of file LALInference.c.

◆ checkREAL8TimeSeries()

static INT4 checkREAL8TimeSeries ( REAL8TimeSeries series)
static

Definition at line 3528 of file LALInference.c.

◆ checkREAL8FrequencySeries()

static INT4 checkREAL8FrequencySeries ( REAL8FrequencySeries series)
static

Definition at line 3546 of file LALInference.c.

◆ checkCOMPLEX16FrequencySeries()

static INT4 checkCOMPLEX16FrequencySeries ( COMPLEX16FrequencySeries series)
static

Definition at line 3564 of file LALInference.c.

◆ matrix_equal()

static INT4 matrix_equal ( gsl_matrix *  a,
gsl_matrix *  b 
)
static

Definition at line 162 of file LALInference.c.

◆ LALInferenceGetItemSlow()

LALInferenceVariableItem * LALInferenceGetItemSlow ( const LALInferenceVariables vars,
const char name 
)
static

Definition at line 193 of file LALInference.c.

◆ LALInferenceParseCommandLine()

ProcessParamsTable * LALInferenceParseCommandLine ( int  argc,
char argv[] 
)

Definition at line 1832 of file LALInference.c.

◆ deleteCell()

static void deleteCell ( LALInferenceKDTree cell)
static

Definition at line 2628 of file LALInference.c.

◆ newCell()

static LALInferenceKDTree * newCell ( size_t  ndim,
REAL8 lowerLeft,
REAL8 upperRight,
size_t  level,
cellType  type 
)
static

Definition at line 2678 of file LALInference.c.

◆ equalPoints()

static int equalPoints ( REAL8 a,
REAL8 b,
size_t  n 
)
static

Definition at line 2718 of file LALInference.c.

◆ cellAllEqualPoints()

static int cellAllEqualPoints ( LALInferenceKDTree cell)
static

Definition at line 2726 of file LALInference.c.

◆ addPtToCellPts()

static void addPtToCellPts ( LALInferenceKDTree cell,
REAL8 pt 
)
static

Definition at line 2741 of file LALInference.c.

◆ insertIntoCell()

static int insertIntoCell ( LALInferenceKDTree cell,
REAL8 pt,
size_t  level 
)
static

Definition at line 2804 of file LALInference.c.

◆ inBounds()

static int inBounds ( REAL8 pt,
REAL8 low,
REAL8 high,
size_t  n 
)
static

Definition at line 2856 of file LALInference.c.

◆ computeMean()

static void computeMean ( LALInferenceKDTree cell)
static

Definition at line 2866 of file LALInference.c.

◆ computeCovariance()

static void computeCovariance ( LALInferenceKDTree cell)
static

Definition at line 2889 of file LALInference.c.

◆ computeEigenVectorsCleanup()

static void computeEigenVectorsCleanup ( gsl_matrix *  A,
gsl_matrix *  evects,
gsl_vector *  evals,
gsl_eigen_symmv_workspace *  ws 
)
static

Definition at line 2931 of file LALInference.c.

◆ computeEigenVectors()

static void computeEigenVectors ( LALInferenceKDTree cell)
static

Definition at line 2939 of file LALInference.c.

◆ toEigenFrame()

static void toEigenFrame ( size_t  dim,
REAL8 **  eigenvs,
REAL8 x,
REAL8 xe 
)
static

Definition at line 2986 of file LALInference.c.

◆ fromEigenFrame()

static void fromEigenFrame ( size_t  dim,
REAL8 **  eigenvs,
REAL8 xe,
REAL8 x 
)
static

Definition at line 3002 of file LALInference.c.

◆ computeEigenMinMax()

static void computeEigenMinMax ( LALInferenceKDTree cell)
static

Definition at line 3016 of file LALInference.c.

◆ updateEigenSystem()

static void updateEigenSystem ( LALInferenceKDTree cell)
static

Definition at line 3063 of file LALInference.c.

◆ doFindCell()

static LALInferenceKDTree * doFindCell ( LALInferenceKDTree cell,
REAL8 pt,
size_t  dim,
size_t  Npts,
size_t  level 
)
static

Definition at line 3081 of file LALInference.c.

◆ inEigenBox()

static int inEigenBox ( LALInferenceKDTree cell,
REAL8 pt 
)
static

Definition at line 3206 of file LALInference.c.

◆ checkREAL8Value()

static INT4 checkREAL8Value ( REAL8  val)
static

Definition at line 3583 of file LALInference.c.

◆ REAL8Vector_fwrite()

static void REAL8Vector_fwrite ( FILE *  f,
REAL8Vector vec 
)
static

Definition at line 3622 of file LALInference.c.

◆ COMPLEX16Vector_fwrite()

static void COMPLEX16Vector_fwrite ( FILE *  f,
COMPLEX16Vector vec 
)
static

Definition at line 3629 of file LALInference.c.

◆ INT4Vector_fwrite()

static void INT4Vector_fwrite ( FILE *  f,
INT4Vector vec 
)
static

Definition at line 3636 of file LALInference.c.

◆ UINT4Vector_fwrite()

static void UINT4Vector_fwrite ( FILE *  f,
UINT4Vector vec 
)
static

Definition at line 3643 of file LALInference.c.

◆ REAL8Vector_fread()

static REAL8Vector * REAL8Vector_fread ( FILE *  f)
static

Definition at line 3650 of file LALInference.c.

◆ COMPLEX16Vector_fread()

static COMPLEX16Vector * COMPLEX16Vector_fread ( FILE *  f)
static

Definition at line 3661 of file LALInference.c.

◆ INT4Vector_fread()

static INT4Vector * INT4Vector_fread ( FILE *  f)
static

Definition at line 3672 of file LALInference.c.

◆ UINT4Vector_fread()

static UINT4Vector * UINT4Vector_fread ( FILE *  f)
static

Definition at line 3684 of file LALInference.c.