The first argument should be an object of class "envelope"
and should contain the simulated function estimates (i.e. it should
have been computed using envelope
with savefuns=TRUE).
The simulated function estimates are extracted from object,
and their squared error from the true value theo
is computed pointwise. The squared errors are integrated over the
interval specified by domain, giving one value of integrated
squared error for each simulated function estimate. These values
are returned as a numerical vector.