Class MathUtils

java.lang.Object
edu.cmu.tetrad.util.MathUtils

public class MathUtils extends Object
Some extra mathematical functions not contained in org.apache.commons.math3.util.FastMath.
Author:
josephramsey
  • Constructor Details

    • MathUtils

      public MathUtils()
  • Method Details

    • logistic

      public static double logistic(double x)
      Parameters:
      x - a double value.
      Returns:
      the logistic function of x = 1 / (1 + exp(-x)).
    • factorial

      public static int factorial(int n)
    • logFactorial

      public static double logFactorial(int n)
    • choose

      public static int choose(int a, int b)
    • logChoose

      public static double logChoose(int a, int b)