R/get.cdf.het.berns.R

Defines functions get.cdf.het.berns

get.cdf.het.berns <-
function(n, j, theta.n, alpha.n)
{  
  ##sort the alphas
  alpha.n <- alpha.n[order(alpha.n)]
  theta.n <- theta.n[order(alpha.n)]

  ##call the C code
  returnvalue <- .C("cdf",as.integer(n),as.double(j),
                    as.double(theta.n), as.double(alpha.n),
                    result=double(1),
                    PACKAGE="CancerMutationAnalysis")
  cdf <- returnvalue$result
  
  cdf    
}

Try the CancerMutationAnalysis package in your browser

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

CancerMutationAnalysis documentation built on Nov. 8, 2020, 6:47 p.m.