| getSamples-methods | R Documentation | 
Function to request further samples from certain hypotheses.
 getSamples(obj, ind, n)
| 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’. | 
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));
  samples <- getSamples(i, c(1,2), c(2,2));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.