bell {salso} | R Documentation |
Compute the Bell Number
Description
These functions compute the Bell number (the number of partitions of a given number of items) or its natural logarithm.
Usage
bell(nItems)
lbell(nItems)
Arguments
nItems |
The size of the set |
Value
A numeric vector of length one giving the Bell number or its natural logarithm.
Examples
# R_CARGO \dontrun{
# R_CARGO # Example disabled since Cargo was not found when installing from source package.
# R_CARGO # You can still run the example if you install Cargo. Hint: cargo::install().
bell(12)
lbell(300)
all.equal( bell(5), exp(lbell(5)) )
# R_CARGO }
[Package salso version 0.3.35 Index]