source: DCWoRMS/branches/coolemall/src/simulator/stats/StatisticsInfo.java @ 1396

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