Class FactorialDouble
java.lang.Object
org.apache.commons.numbers.combinatorics.FactorialDouble
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final FactorialDouble
Deprecated.Single instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
.withCache
(int cacheSize) Deprecated.Since 1.1 this functionality has been replaced withFactorial.doubleValue(int)
.
-
Field Details
-
INSTANCE
Deprecated.Single instance.
-
-
Constructor Details
-
FactorialDouble
private FactorialDouble()Deprecated.No public instances.
-
-
Method Details
-
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.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.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
.
-
Factorial.doubleValue(int)
. Factorial of a number.