Package org.jgrapht.util
Class MathUtil
- java.lang.Object
-
- org.jgrapht.util.MathUtil
-
public class MathUtil extends java.lang.Object
Math Utilities.- Author:
- Assaf Lehr
-
-
Constructor Summary
Constructors Constructor Description MathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
factorial(int n)
Calculate the factorial of $n$.static int
log2(int n)
Calculate the floor of the binary logarithm of $n$.
-