org.ow2.clif.analyze.statistics.util.data
Class SliceSummary

java.lang.Object
  extended by org.ow2.clif.analyze.statistics.util.data.SliceSummary

public class SliceSummary
extends java.lang.Object

summarize long data set (durations) measured within a elapsed time slice

Author:
Guy Vachet

Constructor Summary
SliceSummary(long minTime, long maxTime, ListOfLong data)
           
 
Method Summary
 java.lang.String displayStatistics()
           
 double getDataMean()
           
 long getDataMedian()
           
 int getDataNb()
           
 double getDataStd()
           
 long getMaxData()
           
 long getMaxTimestamp()
           
 long getMinData()
           
 long getMinTimestamp()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SliceSummary

public SliceSummary(long minTime,
                    long maxTime,
                    ListOfLong data)
Parameters:
minTime - the min time stamp of elapsed time (included)
maxTime - the max time stamp of elapsed time (excluded)
data - is a set of times (response times) to be summarize
Method Detail

getMinTimestamp

public long getMinTimestamp()
Returns:
the lower timestamp within the slice (included)

getMaxTimestamp

public long getMaxTimestamp()
Returns:
the upper timestamp of within the slice (excluded)

getDataNb

public int getDataNb()
Returns:
the data (that is durations) number within the slice

getMinData

public long getMinData()
Returns:
min value of durations

getMaxData

public long getMaxData()
Returns:
max value of durations

getDataMedian

public long getDataMedian()
Returns:
median of durations

getDataMean

public double getDataMean()
Returns:
average of durations

getDataStd

public double getDataStd()
Returns:
standard deviation of durations

displayStatistics

public java.lang.String displayStatistics()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object