jmetal.experiments.util
Class Statistics

java.lang.Object
  extended by jmetal.experiments.util.Statistics

public class Statistics
extends java.lang.Object

This class provides methods for computing some statistics


Constructor Summary
Statistics()
           
 
Method Summary
static java.lang.Double calculateIQR(java.util.Vector vector)
          Calculates the interquartile range (IQR) of a vector of Doubles
static java.lang.Double calculateMedian(java.util.Vector vector, int first, int last)
          Calculates the median of a vector considering the positions indicated by the parameters first and last
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistics

public Statistics()
Method Detail

calculateMedian

public static java.lang.Double calculateMedian(java.util.Vector vector,
                                               int first,
                                               int last)
Calculates the median of a vector considering the positions indicated by the parameters first and last

Parameters:
vector -
first - index of first position to consider in the vector
last - index of last position to consider in the vector
Returns:
The median

calculateIQR

public static java.lang.Double calculateIQR(java.util.Vector vector)
Calculates the interquartile range (IQR) of a vector of Doubles

Parameters:
vector -
Returns:
The IQR