ESAT
 All Classes Namespaces Files Functions Variables Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
broad.core.math.MathUtil Class Reference

Public Member Functions

static< T > List< T > shuffle (List< T > original)
 

Static Public Member Functions

static double[][] roots (double[] coefs)
 
static double log2 (double val)
 
static double max (Collection<?extends Number > list)
 
static double[] shuffle (double[] original)
 
static double hypot (double a, double b)
 
static long binomialCoefficient (int n, int k)
 
static long factorial (int n)
 
static boolean closeTo1 (double d)
 

Member Function Documentation

static long broad.core.math.MathUtil.binomialCoefficient ( int  n,
int  k 
)
static

The binomial coefficient n choose k

Parameters
nn
kk
Returns
n choose k

Here is the call graph for this function:

static boolean broad.core.math.MathUtil.closeTo1 ( double  d)
static
static long broad.core.math.MathUtil.factorial ( int  n)
static

Factorial function

Parameters
nn
Returns
n!

Here is the caller graph for this function:

static double broad.core.math.MathUtil.hypot ( double  a,
double  b 
)
static

sqrt(a^2 + b^2) without under/overflow.

static double broad.core.math.MathUtil.log2 ( double  val)
static
static double broad.core.math.MathUtil.max ( Collection<?extends Number >  list)
static
static double [][] broad.core.math.MathUtil.roots ( double[]  coefs)
static

Returns the roots of a polynomial with given coefficients.

Parameters
coefs- Polynomial coefficients in increasing order (e.g. the polynomial is of the form coefs[0] + coefs[1]*X + coefs[2]*X^2 + ...
Returns
static double [] broad.core.math.MathUtil.shuffle ( double[]  original)
static

Here is the caller graph for this function:

static<T> List<T> broad.core.math.MathUtil.shuffle ( List< T >  original)

Here is the call graph for this function:


The documentation for this class was generated from the following file: