org.ow2.clif.analyze.api.graph.datasource
Interface StatisticCollector

All Known Implementing Classes:
StatisticImpl

public interface StatisticCollector

The Interface StatisticCollector.


Field Summary
static java.lang.String STATISTIC_COLLECTOR
          The Constant STATISTIC_COLLECTOR.
 
Method Summary
 java.lang.Object[][] getMaxValues(java.lang.Object[][] values, int timeWindow, int step)
          Gets the max values.
 java.lang.Object[][] getMeans(java.lang.Object[][] values, int timeWindow, int step)
          Gets the means.
 java.lang.Object[][] getMinValues(java.lang.Object[][] values, int timeWindow, int step)
          Gets the min values.
 java.lang.Object[][] getStandardDeviations(java.lang.Object[][] values, int timeWindow, int step)
          Gets the standard deviation.
 java.util.Map getStatistics(java.lang.String testName, java.lang.String bladeId, java.lang.String eventTypeLabel, java.lang.String XFieldLabel, java.lang.String YFieldLabel, int start, int end, int count)
          Get statistic on the Y field.
 

Field Detail

STATISTIC_COLLECTOR

static final java.lang.String STATISTIC_COLLECTOR
The Constant STATISTIC_COLLECTOR.

See Also:
Constant Field Values
Method Detail

getStatistics

java.util.Map getStatistics(java.lang.String testName,
                            java.lang.String bladeId,
                            java.lang.String eventTypeLabel,
                            java.lang.String XFieldLabel,
                            java.lang.String YFieldLabel,
                            int start,
                            int end,
                            int count)
Get statistic on the Y field.

Parameters:
testName - the test run name
bladeId - the blade identifier from the given test run
eventTypeLabel - the label of the event type
XFieldLabel - the label of the X field
YFieldLabel - the label of the Y field
start - the start
end - the end
count - the count
Returns:
a map that contains the various statistics on the Y field

getMeans

java.lang.Object[][] getMeans(java.lang.Object[][] values,
                              int timeWindow,
                              int step)
Gets the means.

Parameters:
values - the values
step - the step
timeWindow - the time window
Returns:
the means

getStandardDeviations

java.lang.Object[][] getStandardDeviations(java.lang.Object[][] values,
                                           int timeWindow,
                                           int step)
Gets the standard deviation.

Parameters:
values - the values
step - the step
timeWindow - the time window
Returns:
the standard deviation

getMinValues

java.lang.Object[][] getMinValues(java.lang.Object[][] values,
                                  int timeWindow,
                                  int step)
Gets the min values.

Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the min values

getMaxValues

java.lang.Object[][] getMaxValues(java.lang.Object[][] values,
                                  int timeWindow,
                                  int step)
Gets the max values.

Parameters:
values - the values
timeWindow - the time window
step - the step
Returns:
the max values