Description Usage Arguments Value Note Author(s) See Also Examples
This function samples partitions from the Ewens, Ewens-Pitman, Ewens attraction, Ewens-Pitman attraction, and ddCRP distributions.
1 | sample.partitions(x, n.draws, parallel = TRUE)
|
x |
An object of class |
n.draws |
An integer representing the desired number of samples. Due to parallelization, slightly more samples may be returned. |
parallel |
Should sampling be done in parallel by simultaneously using all CPU cores? |
An object of class shallot.samples.raw
which can be
subsequently be used in process.samples
.
If this function is interrupted by the user, the computation engine will be broken and subsequent calls to package functions may fail until a new session is started.
David B. Dahl dahl@stat.byu.edu
partition.distribution
,
process.samples
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.