UQTk: Uncertainty Quantification Toolkit 3.1.5
pce_rv.cpp File Reference

Command-line utility for PC-related random variable generation. More...

#include <math.h>
#include <unistd.h>
#include "PCSet.h"
#include "tools.h"
#include "arrayio.h"

Macros

#define RVTYPE   "PCvar"
 default r.v. type
 
#define DIM   1
 default r.v. dimensionality
 
#define SAMPLE   1000
 default number of samples
 
#define PCDIM   1
 default PC dimensionality
 
#define PCORD   3
 default PC order
 
#define PARAMFILE   "pccf.dat"
 default parameter file
 
#define AA   0.0
 default first parameter of PC, if needed
 
#define BB   1.0
 default second parameter of PC, if needed
 
#define MIFILE   "mi.dat"
 default multiindex file
 
#define SEED   1
 default seed
 
#define STRPARAM   "LEG"
 default string parameter
 

Functions

int usage ()
 Displays information about this program.
 
int main (int argc, char *argv[])
 Main program: generates PC-related random variables.
 

Detailed Description

Command-line utility for PC-related random variable generation.

Author
K. Sargsyan 2014 -

Macro Definition Documentation

◆ AA

#define AA   0.0

default first parameter of PC, if needed

◆ BB

#define BB   1.0

default second parameter of PC, if needed

◆ DIM

#define DIM   1

default r.v. dimensionality

◆ MIFILE

#define MIFILE   "mi.dat"

default multiindex file

◆ PARAMFILE

#define PARAMFILE   "pccf.dat"

default parameter file

◆ PCDIM

#define PCDIM   1

default PC dimensionality

◆ PCORD

#define PCORD   3

default PC order

◆ RVTYPE

#define RVTYPE   "PCvar"

default r.v. type

◆ SAMPLE

#define SAMPLE   1000

default number of samples

◆ SEED

#define SEED   1

default seed

◆ STRPARAM

#define STRPARAM   "LEG"

default string parameter

Function Documentation

◆ main()

int main ( int argc,
char * argv[] )

Main program: generates PC-related random variables.

Set the defaults and parse input arguments

Print out input information

Go through options for R.V. generation

Write out to a file

◆ usage()

int usage ( )

Displays information about this program.

Todo
Add more detailed information on options. E.g. what are the different options for type of random variable? When does the order need to be specified?