comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/SQFractionResult.java @ 3105:9592b7d76633

Generate fake data for SQ curves; Implemented the Facet and Generator stuff. flys-artifacts/trunk@4704 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 19 Jun 2012 13:55:14 +0000
parents b31397addf2f
children 02d5731b43a2
comparison
equal deleted inserted replaced
3104:6391ca82141c 3105:9592b7d76633
72 } 72 }
73 73
74 public void addOutliers(SQ[] outliers) { 74 public void addOutliers(SQ[] outliers) {
75 this.outliers.add(outliers); 75 this.outliers.add(outliers);
76 } 76 }
77
78
79 public double getMinQ() {
80 double min = Double.MAX_VALUE;
81
82 for (SQ sq: measurements) {
83 double q = sq.getQ();
84
85 if (q < min) {
86 min = q;
87 }
88 }
89
90 return min;
91 }
92
93
94 public double getMaxQ() {
95 double max = -Double.MAX_VALUE;
96
97 for (SQ sq: measurements) {
98 double q = sq.getQ();
99
100 if (q > max) {
101 max = q;
102 }
103 }
104
105 return max;
106 }
77 } 107 }
78 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 108 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org