powered by
This function samples partitions from the Ewens, Ewens-Pitman, Ewens attraction, Ewens-Pitman attraction, and ddCRP distributions.
sample.partitions(x, n.draws, parallel = TRUE) # S3 method for shallot.samples.raw print(x, ...)
An object of class shallot.distribution obtained, for example, from the ewens.pitman.attraction function.
shallot.distribution
ewens.pitman.attraction
An integer representing the desired number of samples. Due to parallelization, slightly more samples may be returned.
Should sampling be done in parallel by simultaneously using all CPU cores?
Currently ignored.
An object of class shallot.samples.raw which can be subsequently be used in process.samples, pairwise.probabilities, estimate.partition,
shallot.samples.raw
process.samples
pairwise.probabilities
estimate.partition
partition.distribution, process.samples, pairwise.probabilities, estimate.partition sample.partitions.posterior
partition.distribution
sample.partitions.posterior
# NOT RUN { example(shallot) # }
Run the code above in your browser using DataLab