52 Mrv(
int ndim,
string pdfType,
Array1D<int> rndInd,
int order,
string pctype);
1D Array class for any type T
2D Array class for any type T
Header file for the Multivariate PC class.
Stores data of any type T in a 1D array.
Definition Array1D.h:61
Stores data of any type T in a 2D array.
Definition Array2D.h:60
multivariate RV parameterized by PC expansions
Definition mrv.h:48
int getPDim()
Get dimensionailty of parameterization.
Definition mrv.h:65
void getBounds(Array1D< double > &lower, Array1D< double > &upper)
Get bounds on parameters.
Definition mrv.cpp:130
~Mrv()
Destructor.
Definition mrv.h:54
Array2D< double > getMultiPCcf(Array1D< double > &rvParams)
Given parameters of representation, fold them in a 2d-array of PC coefficients for convenience.
Definition mrv.cpp:164
Array2D< double > evalMultiPC(Array2D< double > &xiSam, Array2D< double > &multiPCcf)
Evaluate at multivariate PC at given germ samples for given coefficient matrix.
Definition mrv.cpp:176
PCSet * pcModel_
Pointer to the corresponding PC object.
Definition mrv.h:108
Mrv(int ndim, string pdfType, Array1D< int > rndInd, int order, string pctype)
Constructor with dimensionality, pdftype, randomized parameter indices, order, and pctype.
Definition mrv.cpp:45
int order_
Order of function PC representation.
Definition mrv.h:104
int nDim_
Number of physical parameters lambda.
Definition mrv.h:102
Array1D< int > rndInd_
Randomized parameters indices.
Definition mrv.h:87
void getPCTermId(Array1D< int > &pctermid)
Get PC term ID.
Definition mrv.h:83
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.
Definition mrv.cpp:217
Array1D< int > paramId_
For a given parameterization, id the corresponding physical parameter lambda.
Definition mrv.h:89
Array1D< int > pctermId_
For a given parameterization, id the PC term/order for the corresponding parameter representation.
Definition mrv.h:91
int nPC_
Number of PC parameters for each independent component.
Definition mrv.h:106
Array2D< double > quadParam(Array2D< double > &multiPCcf)
Quadrature-sample all parameters given coefficient matrix.
Definition mrv.cpp:205
Array2D< double > mcParam(Array2D< double > &multiPCcf, int nsam)
Random-sample all parameters given coefficient matrix.
Definition mrv.cpp:195
void computeMoments(Array2D< double > &funcCf, Array1D< double > &fcnMean, Array1D< double > &fcnStd, bool covFlag, Array2D< double > &fcnCov)
Compute moments given coefficent matrix.
Definition mrv.cpp:251
int rDim_
Number of randomized parameters.
Definition mrv.h:100
int Parametrize()
Parameterization bookkeeping (i.e. alpha corresponds to certain parameter lambda and certain PC term)
Definition mrv.cpp:69
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.
Definition mrv.cpp:239
string pcType_
PC type (see pce library for options)
Definition mrv.h:96
int pDim_
Number of parameters in alpha parameterization.
Definition mrv.h:98
string pdfType_
PDF type ('pct', 'pci' or 'full')
Definition mrv.h:94
Defines and initializes PC basis function set and provides functions to manipulate PC expansions defi...
Definition PCSet.h:73