Learn R Programming

MOLHD (version 0.2)

md: Minimum distance between any two points in the design

Description

Minimum distance between any two points in the design

Usage

md(D)

Arguments

D

a design matrix, rows are design locations, columns are design factors

Value

MinimumDistance

Minimum distance between any two points in the design

number

number of pairs in the design achieve the minimum distance

Examples

Run this code
# NOT RUN {
#compute the minimum distance between any two points in design D
d=md(D = cbind(c(0.875,0.375,0.125,0.625),c(0.375,0.125,0.625,0.875)))
d$MinimumDistance
d$number
# }

Run the code above in your browser using DataLab