|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.math.BasicMathFunctions
public class BasicMathFunctions
Class used to perform basic mathematical functions
Constructor Summary | |
---|---|
BasicMathFunctions()
|
Method Summary | |
---|---|
static int |
factorial(int n)
returns n! |
static double |
getCombination(int k,
int n)
Returns the number of k-combinations in a set of n elements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicMathFunctions()
Method Detail |
---|
public static int factorial(int n)
n
- a given integer
public static double getCombination(int k, int n)
k
- n
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |