approximator (version 1.2-7)

Afun: Matrix of correlations between two sets of points

Description

Returns the matrix of correlations of code output at each level evaluated at points on the design matrix.

Usage

Afun(level, Di, Dj, hpa)

Arguments

level

The level. This enters via the correlation scales

Di

First set of points

Dj

Second set of points

hpa

Hyperparameter object

Author

Robin K. S. Hankin

Details

This is essentially a convenient wrapper for function corr.matrix. It is not really intended for the end user.

References

M. C. Kennedy and A. O'Hagan 2000. “Predicting the output from a complex computer code when fast approximations are available” Biometrika, 87(1): pp1-13

See Also

corr,c_fun

Examples

Run this code
data(toyapps)
D2 <-  D1.toy[subsets.toy[[2]],]
D3 <-  D1.toy[subsets.toy[[3]],]

Afun(1,D2,D3,hpa.toy)
Afun(2,D2,D3,hpa.toy)

Run the code above in your browser using DataCamp Workspace