Class CombinFunction

java.lang.Object
com.graphbuilder.math.func.CombinFunction
All Implemented Interfaces:
Function

public class CombinFunction extends Object implements Function
The combination function.
See Also:
  • Constructor Details

    • CombinFunction

      public CombinFunction()
  • Method Details

    • of

      public double of(double[] d, int numParam)
      Returns the number of ways r items can be chosen from n items. The value of n is (int) d[0] and the value of r is (int) d[1].
      Specified by:
      of in interface Function
    • acceptNumParam

      public boolean acceptNumParam(int numParam)
      Returns true only for 2 parameters, false otherwise.
      Specified by:
      acceptNumParam in interface Function
    • toString

      public String toString()
      Overrides:
      toString in class Object