Class FactN
- java.lang.Object
-
- org.openrefine.grel.PureFunction
-
- org.openrefine.expr.functions.math.FactN
-
- All Implemented Interfaces:
Serializable
,Function
public class FactN extends PureFunction
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FactN()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
call(Object[] args)
Computes the value of the function on the given argumentsstatic long
factorial(long i, long step)
Calculates the factorial of an integer, i, for a decreasing step of n. e.g.String
getDescription()
String
getParams()
String
getReturns()
-
Methods inherited from class org.openrefine.grel.PureFunction
call
-
-
-
-
Method Detail
-
call
public Object call(Object[] args)
Description copied from class:PureFunction
Computes the value of the function on the given arguments- Specified by:
call
in classPureFunction
- Parameters:
args
- the values of the arguments- Returns:
- the return value of the function
-
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
public String getDescription()
-
getParams
public String getParams()
-
getReturns
public String getReturns()
-
-