Formula 1.0.0

hirondelle.formula.function.builtin
Class Combination

Object
  extended by hirondelle.formula.function.builtin.Combination
All Implemented Interfaces:
Function

public final class Combination
extends Object
implements Function

combination(n,k): the number of combinations, selecting k of n. Returns the number of distinct ways you can select k items from an underlying set of n items.


Constructor Summary
Combination()
           
 
Method Summary
 Decimal calculate(Decimal... aArgs)
          Takes two parameters n and k (in that order).
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Combination

public Combination()
Method Detail

calculate

public Decimal calculate(Decimal... aArgs)
Takes two parameters n and k (in that order). Both are integers greater than 0, with n >= k.

Specified by:
calculate in interface Function
Parameters:
aArgs - 0 or more arguments to the function.

Formula 1.0.0

Copyright Hirondelle Systems. Published January 31, 2013