R/mvtn.R

Defines functions mvtn

Documented in mvtn

mvtn <-
function(zmu,zsig,c,side = c("left","right"))
{
  side <- match.arg(side)
  if ( side == "left")
  {
    returned_data = .C("MVTN_Left", zmu = as.double(zmu), zsig = as.double(zsig), c = as.double(c), result = as.double(numeric(2)))
    return(returned_data$result)
  }
  else if ( side == "right")
  {
    returned_data = .C("MVTN_Right", zmu = as.double(zmu), zsig = as.double(zsig), c = as.double(c), result = as.double(numeric(2)))
    returned_data$result
  }
}

Try the mvrtn package in your browser

Any scripts or data that you put into this service are public.

mvrtn documentation built on May 2, 2019, 1:27 p.m.