com.x8ing.mc
Class Statistic

java.lang.Object
  extended by com.x8ing.mc.Statistic

public class Statistic
extends java.lang.Object

Author:
Patrick Heusser

Nested Class Summary
static class Statistic.ResultDistributionEntry
           
 
Constructor Summary
Statistic(double[] values)
           
 
Method Summary
 double getAverage()
           
 Statistic.ResultDistributionEntry[] getDistribution(int numberOfSegments)
           
 java.lang.String getDistributionPrint(int numberOfSegments)
           
 double[] getMinimumAndMaximum()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statistic

public Statistic(double[] values)
Method Detail

getDistribution

public Statistic.ResultDistributionEntry[] getDistribution(int numberOfSegments)

getDistributionPrint

public java.lang.String getDistributionPrint(int numberOfSegments)

getAverage

public double getAverage()

getMinimumAndMaximum

public double[] getMinimumAndMaximum()
Returns:
an double array: double[0] is minimum, double[1] is maximum.


by Patrick Heusser