Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedQualityCalculation.java @ 7670:03dc5cc22e26
Update coefficients in porosity formula.
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Fri, 06 Dec 2013 16:44:37 +0100 |
parents | a56fe3bc6700 |
children | cead6df5b7b3 |
comparison
equal
deleted
inserted
replaced
7669:f1abd257f933 | 7670:03dc5cc22e26 |
---|---|
231 double[] results = new double[list.size()]; | 231 double[] results = new double[list.size()]; |
232 int i = 0; | 232 int i = 0; |
233 for (QualityMeasurement qm : list) { | 233 for (QualityMeasurement qm : list) { |
234 double deviation = calculateDeviation(qm); | 234 double deviation = calculateDeviation(qm); |
235 double p = calculateP(qm); | 235 double p = calculateP(qm); |
236 double porosity = 0.353 - 0.068 * deviation + 0.146 * p; | 236 double porosity = 0.362 - 0.088 * deviation + 0.219 * p; |
237 results[i] = porosity; | 237 results[i] = porosity; |
238 i++; | 238 i++; |
239 } | 239 } |
240 | 240 |
241 return results; | 241 return results; |