Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/BedQualityCalculation.java @ 3875:d12f108ccc9c
The usual whitespace and import cleanups.
flys-artifacts/trunk@5508 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 18 Sep 2012 15:45:49 +0000 |
parents | 2c40832cb596 |
children | 22cd60315e08 |
comparison
equal
deleted
inserted
replaced
3874:2c40832cb596 | 3875:d12f108ccc9c |
---|---|
137 TDoubleArrayList location = new TDoubleArrayList(); | 137 TDoubleArrayList location = new TDoubleArrayList(); |
138 TDoubleArrayList porosityCap = new TDoubleArrayList(); | 138 TDoubleArrayList porosityCap = new TDoubleArrayList(); |
139 TDoubleArrayList porositySub = new TDoubleArrayList(); | 139 TDoubleArrayList porositySub = new TDoubleArrayList(); |
140 TDoubleArrayList densityCap = new TDoubleArrayList(); | 140 TDoubleArrayList densityCap = new TDoubleArrayList(); |
141 TDoubleArrayList densitySub = new TDoubleArrayList(); | 141 TDoubleArrayList densitySub = new TDoubleArrayList(); |
142 | 142 |
143 for(double km : kms) { | 143 for(double km : kms) { |
144 double[] pCap = calculatePorosity(capFiltered, km); | 144 double[] pCap = calculatePorosity(capFiltered, km); |
145 double[] pSub = calculatePorosity(subFiltered, km); | 145 double[] pSub = calculatePorosity(subFiltered, km); |
146 double[] dCap = calculateDensity(capFiltered, pCap); | 146 double[] dCap = calculateDensity(capFiltered, pCap); |
147 double[] dSub = calculateDensity(subFiltered, pSub); | 147 double[] dSub = calculateDensity(subFiltered, pSub); |
161 location.add(km); | 161 location.add(km); |
162 porosityCap.add((pCapRes / pCap.length) * 100 ); | 162 porosityCap.add((pCapRes / pCap.length) * 100 ); |
163 porositySub.add((pSubRes / pSub.length) * 100); | 163 porositySub.add((pSubRes / pSub.length) * 100); |
164 densityCap.add((dCapRes / dCap.length) / 1000); | 164 densityCap.add((dCapRes / dCap.length) / 1000); |
165 densitySub.add((dSubRes / dSub.length) / 1000); | 165 densitySub.add((dSubRes / dSub.length) / 1000); |
166 | 166 |
167 } | 167 } |
168 | 168 |
169 return new BedParametersResult( | 169 return new BedParametersResult( |
170 location, | 170 location, |
171 porosityCap, | 171 porosityCap, |