Class FactorialDouble
- java.lang.Object
-
- org.apache.commons.numbers.combinatorics.FactorialDouble
-
@Deprecated public final class FactorialDouble extends Object
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
. Factorial of a number.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FactorialDouble
create()
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.double
value(int n)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.FactorialDouble
withCache(int cacheSize)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.
-
-
-
Method Detail
-
create
@Deprecated public static FactorialDouble create()
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.This class no longer supports a cache. This method returns a reference to a single instance.
- Returns:
- instance
-
withCache
@Deprecated public FactorialDouble withCache(int cacheSize)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.This class no longer supports a cache. This method returns a reference to the same object.
- Parameters:
cacheSize
- Ignored.- Returns:
- instance
-
value
@Deprecated public double value(int n)
Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.The result of calling this method is the same as calling the
Factorial.doubleValue(int)
.- Parameters:
n
- Argument.- Returns:
n!
- Throws:
IllegalArgumentException
- ifn < 0
.
-
-