Learn R Programming

functClust (version 0.1.6)

stirling: Number of Stirling of second kind

Description

Take an integer and return the number of Stirling of second kind, that is the number of all possible partitions into k clusters among n components.

Usage

stirling(n)

Arguments

n

a positive integer. This corresponds to the size of set, that is the number of components that belong to the set.

Value

Return a vector of integer. The names are the number k of clusters. The values are the number of partitions into k clusters possibly combinated with n components.

Details

None.