analyticsPolyLeg: Calculate Legendre Polynomials on a Simulated Dataset

Description Usage Arguments Details Value Note References See Also Examples

View source: R/analyticsPolyLeg.R

Description

This function calculates Legendre polynomials on a simulated LHS.

The dataset is generated by using the function randomLHS (from package lhs). The output is then calculated by using the Ishigami [Saltelli, 2000, Chap. 2] or Sobol function [Sobol', 2003]. Finally, Legendre polynomials are computed after calibration within the bounds [-1, +1].

Usage

1
analyticsPolyLeg(nlhs, degree, model.fun)

Arguments

nlhs

integer equal to the number of rows of the dataset.

degree

integer equal to the degree of the polynomial. Should be greater than 1.

model.fun

string equal to the required model. Valid values are 'ishigami' and 'sobol'.

Details

Value

An objet of class PCEpoly.

Note

The returned values are dependent on the random seed.

References

See Also

Examples

1
2
3
4
5
nlhs <- 200 # number of rows in the dataset
degree <- 6 # polynomial degree
set.seed(42) # fix the seed for reproductible results
pce <- analyticsPolyLeg(nlhs, degree, 'ishigami') 
print(pce)

Example output

Total number of monomials:  83 
Number of factors:  3 
Polynomial degree:  6 
Number of observations: 200 

polychaosbasics documentation built on May 29, 2017, 12:58 p.m.