com.isti.util.math
Class StatFns

java.lang.Object
  extended by com.isti.util.math.StatFns

public class StatFns
extends java.lang.Object

Class StatFns contains various static utility methods for statistics functions.


Method Summary
static double computeMedian(double[] dblArr)
          Computes the median of values in the given array.
static double computeMedian(double[] dblArr, boolean arrSortedFlag)
          Computes the median of values in the given array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeMedian

public static double computeMedian(double[] dblArr,
                                   boolean arrSortedFlag)
Computes the median of values in the given array.

Parameters:
dblArr - array of 'double' values.
arrSortedFlag - true if given array is in sorted order; false if not.
Returns:
Median of values in the given array.

computeMedian

public static double computeMedian(double[] dblArr)
Computes the median of values in the given array.

Parameters:
dblArr - array of 'double' values.
Returns:
Median of values in the given array.