Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/FlowVelocityModelKmValueFinder.java @ 9092:50cfc90ac5b0
Trace added
author | mschaefer |
---|---|
date | Fri, 25 May 2018 14:27:20 +0200 |
parents | 5294114b1df4 |
children | 1b24fdbf7fe2 |
comparison
equal
deleted
inserted
replaced
9091:e07a2b4606c1 | 9092:50cfc90ac5b0 |
---|---|
37 * (Created based on a copy of FlowVelocityMeasurementFactory.) | 37 * (Created based on a copy of FlowVelocityMeasurementFactory.) |
38 * | 38 * |
39 * @author Matthias Schäfer | 39 * @author Matthias Schäfer |
40 */ | 40 */ |
41 final class FlowVelocityModelKmValueFinder { | 41 final class FlowVelocityModelKmValueFinder { |
42 | |
42 /***** FIELDS *****/ | 43 /***** FIELDS *****/ |
43 | 44 |
44 /** | 45 /** |
45 * Private log to use here. | 46 * Private log to use here. |
46 */ | 47 */ |
282 if (isDemoValuesCorrection) | 283 if (isDemoValuesCorrection) |
283 // "Verfremdung" der v-Werte etwas korrigieren (Originalwerte wurden mit Zufallswert zwischen 10 und 20 multipliziert) | 284 // "Verfremdung" der v-Werte etwas korrigieren (Originalwerte wurden mit Zufallswert zwischen 10 und 20 multipliziert) |
284 this.values.get(this.values.size() - 1).addValues((double) row[1], ((double) row[2]) / 10, (double) row[3]); | 285 this.values.get(this.values.size() - 1).addValues((double) row[1], ((double) row[2]) / 10, (double) row[3]); |
285 else | 286 else |
286 this.values.get(this.values.size() - 1).addValues((double) row[1], (double) row[2], (double) row[3]); | 287 this.values.get(this.values.size() - 1).addValues((double) row[1], (double) row[2], (double) row[3]); |
288 final int j = this.values.size() - 1; | |
289 log.trace(String.format("addKms %d km %.3f q %.0f v %.2f tau %.2f", this.values.size() - 1, this.values.get(j).getKm(), (double) row[1], | |
290 (double) row[2], (double) row[3])); | |
287 } | 291 } |
288 return rows.size(); | 292 return rows.size(); |
289 } | 293 } |
290 | 294 |
291 /** | 295 /** |