Class Stirling.StirlingS2Cache
- java.lang.Object
-
- org.apache.commons.numbers.combinatorics.Stirling.StirlingS2Cache
-
- Enclosing class:
- Stirling
private static final class Stirling.StirlingS2Cache extends java.lang.Object
Precomputed Stirling numbers of the second kind. Provides a thread-safe lazy initialization of the cache.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StirlingS2Cache()
-
-
-
Field Detail
-
MAX_N
static final int MAX_N
Maximum n to compute (exclusive). As S(26,9) = 11201516780955125625 is larger than Long.MAX_VALUE we must stop computation at row 26.- See Also:
- Constant Field Values
-
S2
static final long[][] S2
Stirling numbers of the second kind.
-
-