analyticsPolyLeg: Calculate Legendre Polynomials on a Simulated Dataset

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)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.