comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/SieveArray.java @ 4004:3b79e8afca7e

S(Q) calculate effective width
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 01 Oct 2012 15:51:55 +0200
parents ab3a4ad82ae1
children bf2fd9c58ac4
comparison
equal deleted inserted replaced
4003:4d74a579c5c5 4004:3b79e8afca7e
86 * @return The normLoads. 86 * @return The normLoads.
87 */ 87 */
88 public double getNormLoads(int index) { 88 public double getNormLoads(int index) {
89 return this.normLoads[index]; 89 return this.normLoads[index];
90 } 90 }
91
92 public double sandNormFraction() {
93 double sum = 0d;
94 for (int i = 8; i < normLoads.length; ++i) {
95 sum += normLoads[i];
96 }
97 return sum;
98 }
99
100 public double coarseNormFraction() {
101 double sum = 0d;
102 for (int i = 0; i < 4; ++i) {
103 sum += normLoads[i];
104 }
105 return sum;
106 }
107
108 public double gravelNormFraction() {
109 double sum = 0d;
110 for (int i = 4; i < 8; ++i) {
111 sum += normLoads[i];
112 }
113 return sum;
114 }
91 } 115 }
92 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : 116 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org