Class CombinatoricsUtils

java.lang.Object
org.apache.commons.math4.util.CombinatoricsUtils

public final class CombinatoricsUtils
extends java.lang.Object
Combinatorial utilities.
Since:
3.3
  • Method Summary

    Modifier and Type Method Description
    static long stirlingS2​(int n, int k)
    Returns the Stirling number of the second kind, "S(n,k)", the number of ways of partitioning an n-element set into k non-empty subsets.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait