Revision 477,
1.0 KB
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package simulator.stats; |
---|
2 | |
---|
3 | |
---|
4 | /** |
---|
5 | * Gathers the statistics values used internally |
---|
6 | * @author Stanislaw Szczepanowski |
---|
7 | */ |
---|
8 | public class StatisticsInfo { |
---|
9 | |
---|
10 | /** The mean value */ |
---|
11 | protected GSSAccumulator mean; |
---|
12 | /** The standard deviation value */ |
---|
13 | protected GSSAccumulator stdev; |
---|
14 | /** The minimal value */ |
---|
15 | protected GSSAccumulator max; |
---|
16 | /** The maximal value */ |
---|
17 | protected GSSAccumulator min; |
---|
18 | /** |
---|
19 | * @param mean |
---|
20 | * @param stdev |
---|
21 | * @param max |
---|
22 | * @param min |
---|
23 | */ |
---|
24 | public StatisticsInfo(GSSAccumulator mean, GSSAccumulator stdev, GSSAccumulator max, GSSAccumulator min) { |
---|
25 | this.mean = mean; |
---|
26 | this.stdev = stdev; |
---|
27 | this.max = max; |
---|
28 | this.min = min; |
---|
29 | } |
---|
30 | /** |
---|
31 | * @return the maximal value |
---|
32 | */ |
---|
33 | public GSSAccumulator getMax() { |
---|
34 | return max; |
---|
35 | } |
---|
36 | /** |
---|
37 | * @return the mean value |
---|
38 | */ |
---|
39 | public GSSAccumulator getMean() { |
---|
40 | return mean; |
---|
41 | } |
---|
42 | /** |
---|
43 | * @return the minimal value |
---|
44 | */ |
---|
45 | public GSSAccumulator getMin() { |
---|
46 | return min; |
---|
47 | } |
---|
48 | /** |
---|
49 | * @return the standard deviation value |
---|
50 | */ |
---|
51 | public GSSAccumulator getStdev() { |
---|
52 | return stdev; |
---|
53 | } |
---|
54 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.