Computes the distance matrix associated with the design held in the
design slot of an SSM object. Used in the construction of the
metamodel error estimating Gaussian process.
new.distance(type = "distance", ssm, line.grid = 100)(optional) Character. Specifies the distance measure used. Acceptable values are "distance", "line", "product", "area", "proddiff", "smoothdiff".
An SSM object.
(optional). An integer. Specifies the number of points used
in the computation of the distance matrix when type = "line".
A matrix.
Implemented types of distance measure are:
"distance" Standard Euclidean distance.
"line" The line integral of the smoothness between design
points. This is not implemented for data where d > 1.
"product" The product of the Euclidean distance and the
local smoothness at both points.
"area" The sum of the local smoothness at the points
multiplied by the Euclidean distance.
"proddiff" Multiplies the difference in local smoothness
between points by the Euclidean distance.
"smoothdiff" The difference between the local smoothness of
points.
All measures other than "distance" are experimental and should be
used with caution.