stirling2(m, n)

Stirling numbers of the 2nd kind: the number of ways to partition n elements into k groups
63 téléchargements
Mise à jour 29 mai 2016

Afficher la licence

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.

Citation pour cette source

Michael Boedigheimer (2024). stirling2(m, n) (https://www.mathworks.com/matlabcentral/fileexchange/57412-stirling2-m-n), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2014b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0