Description Usage Arguments Value Author(s) References Examples
The getM is a very simple function that determines the size of the canonical polynomial chaos expansion for d random variables up to and including degree p in the expansion. The size is determined from choose(d+p,d) or factorial(d+p)/factorial(d)/factorial(p).
1 | getM(d,p)
|
d |
Number of input random variables |
p |
Order of the polynomial chaos expansion |
M |
Number of terms in the canonical d-dimensional polynomial chaos expansion up to and including degree p |
Jordan Ko
R. Ghanem and P. Spanos, 1991, Stochastic Finite Elements: A Spectral Approach. Berlin: Springer.
1 2 3 | d <- 10
p <- 15
m <- getM(d,p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.