|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.test.internal.performance.eval.StatisticsUtil
public final class StatisticsUtil
Utility methods for statistics.
Nested Class Summary | |
---|---|
static class |
StatisticsUtil.Percentile
Percentile constants class. |
Field Summary | |
---|---|
static StatisticsUtil.Percentile |
T90
|
static StatisticsUtil.Percentile |
T95
|
static StatisticsUtil.Percentile |
T97_5
|
static StatisticsUtil.Percentile |
T99
|
Method Summary | |
---|---|
static double |
deviation(double[] values)
|
static double |
getStudentsT(int df,
StatisticsUtil.Percentile percentile)
Returns the student's t value from the two-tailed t-table. |
static double |
standardError(double[] values,
double[] stddevs,
long[] counts)
|
static double[] |
statisticsForTimeSeries(TimeSeries refSeries,
int index1,
TimeSeries testSeries,
int index2,
StatisticsUtil.Percentile percentile)
Returns true if the mean of two data sets is significantly different, such
that the probability that they are from the same population is lower than
percentile , false otherwise. |
static double |
studentTtest(double[] values,
double[] stddevs,
long[] counts,
StatisticsUtil.Percentile percentile)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StatisticsUtil.Percentile T90
public static final StatisticsUtil.Percentile T95
public static final StatisticsUtil.Percentile T97_5
public static final StatisticsUtil.Percentile T99
Method Detail |
---|
public static double getStudentsT(int df, StatisticsUtil.Percentile percentile)
df
- the degrees of freedom (usually sample size - 1)percentile
- the percentile
public static double[] statisticsForTimeSeries(TimeSeries refSeries, int index1, TimeSeries testSeries, int index2, StatisticsUtil.Percentile percentile)
true
if the mean of two data sets is significantly different, such
that the probability that they are from the same population is lower than
percentile
, false
otherwise. The data sets are taken from
series
at index1
and index2
.
Note that no conclusion must be drawn from a false
return value: it does not
indicate that the two data sets are from the same population - there may simply be not enough
data to conclude the other way, for example due to a small sample size or large standard
deviation.
Also note that a true
return value does not say anything about the relevance
of the difference - a statistically significant difference may be practically irrelevant if
it is small.
XXX the current implementation assumes that the standard deviations are sufficiently similar.
refSeries
- the time series containing the first data setindex1
- the index into series1
for the first data settestSeries
- the time series containing the second data setindex2
- the index into series2
for the second data setpercentile
- the percentile level to use
true
if the null hypothesis is rejected on the percentile
level, false
if it cannot be rejected based on the given datapublic static double studentTtest(double[] values, double[] stddevs, long[] counts, StatisticsUtil.Percentile percentile)
public static double deviation(double[] values)
public static double standardError(double[] values, double[] stddevs, long[] counts)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |