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 SummaryConstructors
- 
Method SummaryModifier 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- 
MathUtilspublic MathUtils()
 
- 
- 
Method Details- 
logisticpublic static double logistic(double x) - Parameters:
- x- a double value.
- Returns:
- the logistic function of x = 1 / (1 + exp(-x)).
 
- 
factorialpublic static int factorial(int n) 
- 
logFactorialpublic static double logFactorial(int n) 
- 
choosepublic static int choose(int a, int b) 
- 
logChoosepublic static double logChoose(int a, int b) 
 
-