stirling2(m, n)

Stirling numbers of the 2nd kind: the number of ways to partition n elements into k groups
66.0 次下载
更新时间 2016/5/29

查看许可证

Stirling numbers of the 2nd kind show the number of ways in which a set of m elements can be clustered to form n groups. This algorithm uses a recursive formula that is exact up to intmax('uint64'). Stirling numbers under this will be represented exactly and any number larger than this but less than realmax will be approximated using double precision (16-digits). Exact solutions are available for any n in S(26,n), and for select n in S(>26,n) for select n. Solutions are available for S(<220,n) for all n, and S(>=220,n) for select n.

引用格式

Michael Boedigheimer (2024). stirling2(m, n) (https://www.mathworks.com/matlabcentral/fileexchange/57412-stirling2-m-n), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0