The margin is what emulatorTrustBox() added on each side (its margin attribute), on the sides that are not a face of the unit cube; a point outside the box is in it too. A best point there means the minimum may lie beyond the box, so the box should not shrink.

emulatorAtBoxEdge(x, box)

Arguments

x

numeric; a point, unit cube.

box

the 2-row matrix of emulatorTrustBox(), with its margin attribute.

Value

logical.