Package edu.cmu.tetrad.util
Class MathUtils
java.lang.Object
edu.cmu.tetrad.util.MathUtils
Some extra mathematical functions not contained in org.apache.commons.math3.util.FastMath.
- Author:
- Joseph Ramsey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intchoose(int a, int b) static intfactorial(int n) static doublelogChoose(int a, int b) static doublelogFactorial(int n) static doublelogistic(double x)
-
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)
-