partition.pmf: Obtain the Probability Mass Function of a Partition Distribution
Description
This function returns the probability mass function (pmf) of a partition distribution.
Usage
partition.pmf(x)
Arguments
x
An object of class shallot.distribution obtained, for example, from the ewens.pitman.attraction function.
Value
A function that takes a partition (as a vector in cluster label notation) and returns the probability --- or, if log=TRUE, the log of the probability --- of the supplied partition.