tristrip we have to check in
which of the 6 outer regions of the triangle the origin
(0,0) lies and adapt the signs in the formula
appropriately. (AOB+BOC-AOC) or (AOB-AOC-BOC) or
(AOB+AOC-BOC) or (AOC+BOC-AOB) or .... However, the
most time consuming step is the evaluation of
pmvnorm.polyCub.exact.Gauss(polyregion, mean = c(0, 0),
Sigma = diag(2), plot = FALSE)"gpc.poly" polygon.polyregion will be shifted and scaled.polyregion. Two attributes are appended to the
integral value:pmvnorm and
pnorm, the former of which being the
most time-consuming operation.nEval
pmvnorm evaluations. For this
reason, the cubature method is in fact only quasi-exact
(as is the pmvnorm function).polyCub,
polyCub.midpoint, polyCub.SV