dists.2frames {calibrator}  R Documentation 
Distance between two points
Description
Distance between points specified by rows of two matrices, according to a positive definite matrix. If not specified, the second matrix used is the first.
Usage
dists.2frames(a, b=NULL, A=NULL, A.lower=NULL, test.for.symmetry=TRUE)
Arguments
a 
First dataframe whose rows are the points 
b 
Second dataframe whose rows are the points; if 
A 
Positive definite matrix; if 
A.lower 
The lower triangular Cholesky decomposition of
If a value for 
test.for.symmetry 
Boolean, with default 
Author(s)
Robin K. S. Hankin
References

M. C. Kennedy and A. O'Hagan 2001. Bayesian calibration of computer models. Journal of the Royal Statistical Society B, 63(3) pp425464

M. C. Kennedy and A. O'Hagan 2001. Supplementary details on Bayesian calibration of computer models, Internal report, University of Sheffield. Available at http://www.tonyohagan.co.uk/academic/ps/calsup.ps

R. K. S. Hankin 2005. Introducing BACCO, an R bundle for Bayesian analysis of computer code output, Journal of Statistical Software, 14(16)
See Also
Examples
data(toys)
dists.2frames(a=D2.toy,A=diag(2))
A < diag(2) + matrix(0.2,2,2)
A.lower < t(chol(A))
jj.1 < dists.2frames(a=D2.toy, A=A, test=TRUE)
jj.2 < dists.2frames(a=D2.toy, A=A, test=FALSE)
jj.3 < dists.2frames(a=D2.toy, A.lower=A.lower, test=FALSE)
jj.4 < dists.2frames(a=D2.toy, A.lower=A.lower, test=TRUE)