The box around the best topFrac of the points X by score (at least 2), widened by widen times its width each side, then scaled by scale about its centre, and clipped to the unit cube.

emulatorTrustBox(X, score, topFrac, widen, scale = 1)

Arguments

X

matrix; distinct points, unit cube.

score

numeric; one per row of X, lower is better (the GP mean).

topFrac, widen, scale

numeric.

Value

a 2-row matrix (lower, upper), with attribute margin: what widen added on each side (per parameter, before clipping).