Last chance! 50% off unlimited learning
Sale ends in
dists.2frames(a, b=NULL, A=NULL, A.lower=NULL, test.for.symmetry=TRUE)
NULL
,
use a
NULL
, a value for
A.lower
is needed. If a value for A
is supplied, use
a clear but possibly slower method.A
(only needed if A
is NULL
).
If a value for A.lower
is specified, this means that a
relatively opaque but possibly faster method will be uTRUE
meaning
to calculate all element arrays (elegantly), and FALSE
meaning to calculate only the upper triangular elements (using
loops), which ought to be faster. The value of this argument shdists.2frames
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)
Run the code above in your browser using DataLab