getNumber-methods {simctest} | R Documentation |
Function to request number of hypotheses.
getNumber(obj)
obj |
object of type "mmctSampler" derived from class "mmctSamplerGeneric". |
works with object of type "mmctSampler" derived from class "mmctSamplerGeneric".
fun <- function(ind,n,data) sapply(1:length(ind), function(i) sum(runif(n[i])<=data[ind[i]])); i <- mmctSampler(fun,num=500,data=runif(500)); number <- getNumber(i);