Formula 1.0.0

hirondelle.formula.function.builtin
Class Permutation

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

public final class Permutation
extends Object
implements Function

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


Constructor Summary
Permutation()
           
 
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

Permutation

public Permutation()
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