Learn R Programming

shallot (version 0.4.1)

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.

Examples

Run this code
# NOT RUN {
example(shallot)
# }

Run the code above in your browser using DataLab