Learn R Programming

aibd (version 0.1.9)

ibp: Define an Indian Buffet Process (IBP) Distribution for Feature Allocations

Description

This function specifies an Indian Buffet Process (IBP), which is a distribution over feature allocations.

Usage

ibp(mass, x)

Arguments

mass

The mass (a.k.a., concentration) parameter.

x

A character vector giving the labels of the items to place in a feature allocation, or an integer giving the number of items.

Value

An object representing an Indian Buffet Process (IBP) feature allocation distribution.

Examples

Run this code
# NOT RUN {
ibp(1,5)
ibp(1,c("CA","WI","NE","NY","UT"))

# }

Run the code above in your browser using DataLab