|
||||||||||
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 |
static double |
mad(double[] ratios)
Method estimating the median absolute deviation |
static double |
mean(java.util.ArrayList<java.lang.Double> input)
Convenience method returning the mean of a list of doubles |
static double |
median(java.util.ArrayList<java.lang.Double> input)
Method to estimate the median |
static double |
median(double[] ratios)
Method to estimate the median |
static double |
std(java.util.ArrayList<java.lang.Double> input)
Convenience method returning the standard deviation of a list of doubles. |
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
- the number of k-combinationsn
- the number of elements
public static double median(double[] ratios)
ratios
- array of double
public static double median(java.util.ArrayList<java.lang.Double> input)
input
- ArrayList of double
public static double mad(double[] ratios)
ratios
- array of doubles
public static double std(java.util.ArrayList<java.lang.Double> input)
input
- input list
public static double mean(java.util.ArrayList<java.lang.Double> input)
input
- input list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |