UQTk: Uncertainty Quantification Toolkit 3.1.5
|
Command-line utility for model parameter inference. More...
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <sstream>
#include <map>
#include <iostream>
#include <string>
#include <math.h>
#include <getopt.h>
#include "func.h"
#include "post.h"
#include "mrv.h"
#include "inference.h"
#include "mcmc.h"
#include "tools.h"
#include "arrayio.h"
#include "arraytools.h"
Macros | |
#define | MODELTYPE "linear" |
default model type | |
#define | LIKTYPE "classical" |
default likelihood type | |
#define | LIKPARAM_DBL 0.01 |
default likelihood parameter of type double | |
#define | LIKPARAM_INT 1000 |
default likelihood parameter of type int | |
#define | PRIORTYPE "uniform" |
default prior type | |
#define | PRIORA -DBL_MAX |
default prior parameter #1 | |
#define | PRIORB DBL_MAX |
default prior parameter #2 | |
#define | XFILE "xdata.dat" |
default xfile | |
#define | YFILE "ydata.dat" |
default yfile | |
#define | PDIM 2 |
default model parameter dimensionailty | |
#define | ORDER 1 |
default parameter pdf order | |
#define | PDFTYPE "pct" |
default parameter pdf type | |
#define | PCTYPE "HG" |
default parameter pc for parameter pdf | |
#define | DATANOISE 0.1 |
default datanoise | |
#define | NMCMC 10000 |
default number of MCMC steps | |
#define | MCMCGAMMA 0.1 |
default MCMC gamma (i.e. proposal size factor) for adaptive MCMC | |
#define | FBURN 10 |
default burn-in ratio | |
#define | NSTEP 5 |
default chain thinning | |
Functions | |
int | usage () |
Displays information about this program. | |
int | main (int argc, char *argv[]) |
Main program: Bayesian inference of a few standard function types. | |
Command-line utility for model parameter inference.
#define DATANOISE 0.1 |
default datanoise
#define FBURN 10 |
default burn-in ratio
#define LIKPARAM_DBL 0.01 |
default likelihood parameter of type double
#define LIKPARAM_INT 1000 |
default likelihood parameter of type int
#define LIKTYPE "classical" |
default likelihood type
#define MODELTYPE "linear" |
default model type
#define NMCMC 10000 |
default number of MCMC steps
#define NSTEP 5 |
default chain thinning
#define ORDER 1 |
default parameter pdf order
#define PCTYPE "HG" |
default parameter pc for parameter pdf
#define PDFTYPE "pct" |
default parameter pdf type
#define PDIM 2 |
default model parameter dimensionailty
#define PRIORA -DBL_MAX |
default prior parameter #1
#define PRIORB DBL_MAX |
default prior parameter #2
#define PRIORTYPE "uniform" |
default prior type
#define XFILE "xdata.dat" |
default xfile
#define YFILE "ydata.dat" |
default yfile
int main | ( | int | argc, |
char * | argv[] ) |
Main program: Bayesian inference of a few standard function types.
Set the defaults, where necessary
Parse input arguments
Read datafiles
Read the indices of randomized parameters
Run the inference
Write the outputs
int usage | ( | ) |
Displays information about this program.