getSamples-methods: Methods for Function 'cont' in class 'mmctestres', Package...

Description Usage Arguments Methods Examples

Description

Function to request further samples from certain hypotheses.

Usage

1
 getSamples(obj, ind, n)

Arguments

obj

object of type "mmctSampler" derived from class "mmctSamplerGeneric".

ind

vector containing the indices of hypotheses for which further samples are requested.

n

vector containing number of further samples for each hypothesis in vector ‘ind’.

Methods

getSamples(obj, ind, n)

works with object of type "mmctSampler" derived from class "mmctSamplerGeneric".

Examples

1
2
3
  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));
  samples <- getSamples(i, c(1,2), c(2,2));

simctest documentation built on Nov. 4, 2019, 5:08 p.m.