UQTk: Uncertainty Quantification Toolkit 3.1.5
|
multivariate RV parameterized by PC expansions More...
#include <mrv.h>
Public Member Functions | |
Mrv (int ndim, string pdfType, Array1D< int > rndInd, int order, string pctype) | |
Constructor with dimensionality, pdftype, randomized parameter indices, order, and pctype. | |
~Mrv () | |
Destructor. | |
int | Parametrize () |
Parameterization bookkeeping (i.e. alpha corresponds to certain parameter lambda and certain PC term) | |
void | getBounds (Array1D< double > &lower, Array1D< double > &upper) |
Get bounds on parameters. | |
int | getPDim () |
Get dimensionailty of parameterization. | |
Array2D< double > | getMultiPCcf (Array1D< double > &rvParams) |
Given parameters of representation, fold them in a 2d-array of PC coefficients for convenience. | |
Array2D< double > | evalMultiPC (Array2D< double > &xiSam, Array2D< double > &multiPCcf) |
Evaluate at multivariate PC at given germ samples for given coefficient matrix. | |
Array2D< double > | mcParam (Array2D< double > &multiPCcf, int nsam) |
Random-sample all parameters given coefficient matrix. | |
Array2D< double > | quadParam (Array2D< double > &multiPCcf) |
Quadrature-sample all parameters given coefficient matrix. | |
Array2D< double > | propNISP (Array2D< double >(*forwardFcn)(Array2D< double > &, Array2D< double > &, Array2D< double > &, void *), Array2D< double > &fixindnom, void *funcinfo, Array2D< double > &multiPCcf, Array2D< double > &x) |
Propagate the multivariate RV with given coefficeints through a given function at given values x. | |
Array2D< double > | propMC (Array2D< double >(*forwardFcn)(Array2D< double > &, Array2D< double > &, Array2D< double > &, void *), Array2D< double > &fixindnom, void *funcinfo, Array2D< double > &multiPCcf, Array2D< double > &x, int nsam) |
Sample values of a given function given input coefficeint matrix. | |
void | computeMoments (Array2D< double > &funcCf, Array1D< double > &fcnMean, Array1D< double > &fcnStd, bool covFlag, Array2D< double > &fcnCov) |
Compute moments given coefficent matrix. | |
void | getPCTermId (Array1D< int > &pctermid) |
Get PC term ID. | |
Private Attributes | |
Array1D< int > | rndInd_ |
Randomized parameters indices. | |
Array1D< int > | paramId_ |
For a given parameterization, id the corresponding physical parameter lambda. | |
Array1D< int > | pctermId_ |
For a given parameterization, id the PC term/order for the corresponding parameter representation. | |
string | pdfType_ |
PDF type ('pct', 'pci' or 'full') | |
string | pcType_ |
PC type (see pce library for options) | |
int | pDim_ |
Number of parameters in alpha parameterization. | |
int | rDim_ |
Number of randomized parameters. | |
int | nDim_ |
Number of physical parameters lambda. | |
int | order_ |
Order of function PC representation. | |
int | nPC_ |
Number of PC parameters for each independent component. | |
PCSet * | pcModel_ |
Pointer to the corresponding PC object. | |
multivariate RV parameterized by PC expansions
Mrv::Mrv | ( | int | ndim, |
string | pdfType, | ||
Array1D< int > | rndInd, | ||
int | order, | ||
string | pctype ) |
Constructor with dimensionality, pdftype, randomized parameter indices, order, and pctype.
|
inline |
Destructor.
void Mrv::computeMoments | ( | Array2D< double > & | funcCf, |
Array1D< double > & | fcnMean, | ||
Array1D< double > & | fcnStd, | ||
bool | covFlag, | ||
Array2D< double > & | fcnCov ) |
Compute moments given coefficent matrix.
Evaluate at multivariate PC at given germ samples for given coefficient matrix.
Get bounds on parameters.
Given parameters of representation, fold them in a 2d-array of PC coefficients for convenience.
|
inline |
Get PC term ID.
|
inline |
Get dimensionailty of parameterization.
Random-sample all parameters given coefficient matrix.
int Mrv::Parametrize | ( | ) |
Parameterization bookkeeping (i.e. alpha corresponds to certain parameter lambda and certain PC term)
Array2D< double > Mrv::propMC | ( | Array2D< double >(* | forwardFcn )(Array2D< double > &, Array2D< double > &, Array2D< double > &, void *), |
Array2D< double > & | fixindnom, | ||
void * | funcinfo, | ||
Array2D< double > & | multiPCcf, | ||
Array2D< double > & | x, | ||
int | nsam ) |
Sample values of a given function given input coefficeint matrix.
Array2D< double > Mrv::propNISP | ( | Array2D< double >(* | forwardFcn )(Array2D< double > &, Array2D< double > &, Array2D< double > &, void *), |
Array2D< double > & | fixindnom, | ||
void * | funcinfo, | ||
Array2D< double > & | multiPCcf, | ||
Array2D< double > & | x ) |
Propagate the multivariate RV with given coefficeints through a given function at given values x.
Quadrature-sample all parameters given coefficient matrix.
|
private |
Number of physical parameters lambda.
|
private |
Number of PC parameters for each independent component.
|
private |
Order of function PC representation.
|
private |
For a given parameterization, id the corresponding physical parameter lambda.
|
private |
Pointer to the corresponding PC object.
|
private |
For a given parameterization, id the PC term/order for the corresponding parameter representation.
|
private |
PC type (see pce library for options)
|
private |
PDF type ('pct', 'pci' or 'full')
|
private |
Number of parameters in alpha parameterization.
|
private |
Number of randomized parameters.
|
private |
Randomized parameters indices.