Markov-Chain Monte Carlo sampler written for LALInference. More...
Markov-Chain Monte Carlo sampler written for LALInference.
Independent of model.
Markov-Chain Monte Carlo sampler incorporating parallel tempering using MPI and the possibility of adaptative jumps.
Provided are a LALAlgorithm function and a LALEvolveOneStepFunction which implement a single step forward.
Definition in file LALInferenceMCMCSampler.h.
Go to the source code of this file.
Macros | |
| #define | COVMATRIXNAME "covarianceMatrix" |
| #define | UNCORRSAMPNAME "uncorrelatedSample" |
| #define | SIGMAVECTORNAME "sigmaJump" |
Enumerations | |
| enum | LALInferenceMPIcomm { PT_COM , LADDER_UPDATE_COM , RUN_PHASE_COM , RUN_COMPLETE } |
| #define COVMATRIXNAME "covarianceMatrix" |
Definition at line 41 of file LALInferenceMCMCSampler.h.
| #define UNCORRSAMPNAME "uncorrelatedSample" |
Definition at line 42 of file LALInferenceMCMCSampler.h.
| #define SIGMAVECTORNAME "sigmaJump" |
Definition at line 43 of file LALInferenceMCMCSampler.h.
| enum LALInferenceMPIcomm |
| Enumerator | |
|---|---|
| PT_COM | |
| LADDER_UPDATE_COM | Parallel tempering communications. |
| RUN_PHASE_COM | Update positions across the ladder. |
| RUN_COMPLETE | runPhase passing Run complete |
Definition at line 53 of file LALInferenceMCMCSampler.h.
| void PTMCMCAlgorithm | ( | struct tagLALInferenceRunState * | runState | ) |
Implements the parallel tempered MCMC algorithm.
Designes to use PTMCMCOneStep() as the runstate->evolve function
Definition at line 199 of file LALInferenceMCMCSampler.c.
| void mcmc_step | ( | LALInferenceRunState * | runState, |
| LALInferenceThreadState * | thread | ||
| ) |
Implements one MCMC step forward, updating the sigma values for the jump proposals if required.
Definition at line 594 of file LALInferenceMCMCSampler.c.
| void record_likelihoods | ( | LALInferenceThreadState * | thread | ) |
Definition at line 569 of file LALInferenceMCMCSampler.c.
| void LALInferenceAdaptLadder | ( | LALInferenceRunState * | runState | ) |
Definition at line 676 of file LALInferenceMCMCSampler.c.
| void LALInferencePTswap | ( | LALInferenceRunState * | runState, |
| FILE * | swapfile | ||
| ) |
Definition at line 767 of file LALInferenceMCMCSampler.c.
| void acknowledgePhase | ( | LALInferenceRunState * | runState | ) |
| void LALInferenceAdaptation | ( | LALInferenceThreadState * | thread | ) |
Definition at line 1138 of file LALInferenceMCMCSampler.c.
| void LALInferenceAdaptationRestart | ( | LALInferenceThreadState * | thread | ) |
Definition at line 1174 of file LALInferenceMCMCSampler.c.
Definition at line 1212 of file LALInferenceMCMCSampler.c.
| void LALInferenceShutdownLadder | ( | void | ) |
| void LALInferenceFlushPTswap | ( | void | ) |
| void LALInferenceLadderUpdate | ( | LALInferenceRunState * | runState, |
| INT4 | sourceChainFlag, | ||
| INT4 | cycle | ||
| ) |
| void LALInferencePrintPTMCMCHeadersOrResume | ( | LALInferenceRunState * | runState | ) |
| void LALInferencePrintPTMCMCHeaderFile | ( | LALInferenceRunState * | runState, |
| LALInferenceThreadState * | thread, | ||
| FILE * | threadoutput | ||
| ) |
Definition at line 1573 of file LALInferenceMCMCSampler.c.
| void LALInferencePrintAdaptationHeader | ( | FILE * | outfile, |
| LALInferenceThreadState * | thread | ||
| ) |
Definition at line 1681 of file LALInferenceMCMCSampler.c.
| void LALInferencePrintPTMCMCInjectionSample | ( | LALInferenceRunState * | runState | ) |
Definition at line 1705 of file LALInferenceMCMCSampler.c.
| void LALInferenceDataDump | ( | LALInferenceIFOData * | data, |
| LALInferenceModel * | model | ||
| ) |
Definition at line 1970 of file LALInferenceMCMCSampler.c.
| void LALInferenceSaveSample | ( | LALInferenceThreadState * | thread, |
| FILE * | output | ||
| ) |
Definition at line 1883 of file LALInferenceMCMCSampler.c.
| void LALInferencePrintAdaptationSettings | ( | FILE * | outfile, |
| LALInferenceThreadState * | thread | ||
| ) |
Definition at line 1932 of file LALInferenceMCMCSampler.c.
| void LALInferencePrintMCMCSample | ( | LALInferenceThreadState * | thread, |
| LALInferenceIFOData * | data, | ||
| INT4 | iteration, | ||
| REAL8 | timestamp, | ||
| FILE * | threadoutput | ||
| ) |
Definition at line 1890 of file LALInferenceMCMCSampler.c.
| void LALInferenceWriteMCMCSamples | ( | LALInferenceRunState * | runState | ) |
Definition at line 1522 of file LALInferenceMCMCSampler.c.
| void LALInferenceNameOutputs | ( | LALInferenceRunState * | runState | ) |
Definition at line 1232 of file LALInferenceMCMCSampler.c.
| void LALInferenceCheckpointMCMC | ( | LALInferenceRunState * | runState | ) |
Definition at line 1305 of file LALInferenceMCMCSampler.c.
| void LALInferenceResumeMCMC | ( | LALInferenceRunState * | runState | ) |
Definition at line 1289 of file LALInferenceMCMCSampler.c.
| void LALInferenceReadMCMCCheckpoint | ( | LALInferenceRunState * | runState | ) |
Definition at line 1368 of file LALInferenceMCMCSampler.c.
| void LALInferenceAddPTMCMCMetaInfo | ( | LALInferenceRunState * | runState | ) |
Definition at line 2053 of file LALInferenceMCMCSampler.c.
| void LALInferenceMCMCResumeRead | ( | LALInferenceThreadState * | thread, |
| FILE * | resumeFile | ||
| ) |
Reads final parameter values from the given output file, and stores them in the current params to try to continue the run.
Definition at line 2046 of file LALInferenceMCMCSampler.c.
| void init_mpi_randomstate | ( | LALInferenceRunState * | run_state | ) |
Definition at line 49 of file LALInferenceKombine.c.