Class FactN
java.lang.Object
com.google.refine.expr.functions.math.FactN
- All Implemented Interfaces:
Function
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(Properties bindings, Object[] args) static longfactorial(long i, long step) Calculates the factorial of an integer, i, for a decreasing step of n.
-
Constructor Details
-
FactN
public FactN()
-
-
Method Details
-
call
-
factorial
public static long factorial(long i, long step) Calculates the factorial of an integer, i, for a decreasing step of n. e.g. A double factorial would have a step of 2. Returns 1 for zero and negative integers. -
getDescription
- Specified by:
getDescriptionin interfaceFunction
-
getParams
-
getReturns
- Specified by:
getReturnsin interfaceFunction
-