java.lang.Object
com.google.refine.expr.functions.math.FactN
All Implemented Interfaces:
Function

public class FactN extends Object implements Function
  • Constructor Details

    • FactN

      public FactN()
  • Method Details

    • call

      public Object call(Properties bindings, Object[] args)
      Specified by:
      call in interface 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()
      Specified by:
      getDescription in interface Function
    • getParams

      public String getParams()
      Specified by:
      getParams in interface Function
    • getReturns

      public String getReturns()
      Specified by:
      getReturns in interface Function