Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQCKms.java @ 686:3dc61e00385e facets-slt
Merged with trunk and introduced hashing of computed values.
flys-artifacts/branches/facets-slt@2126 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 15 Jun 2011 15:28:54 +0000 |
parents | 913b52064449 |
children | eab5e5089d77 |
comparison
equal
deleted
inserted
replaced
667:434146596838 | 686:3dc61e00385e |
---|---|
28 super(kms, qs, ws); | 28 super(kms, qs, ws); |
29 | 29 |
30 this.cw = new TDoubleArrayList(cws); | 30 this.cw = new TDoubleArrayList(cws); |
31 } | 31 } |
32 | 32 |
33 @Override | |
34 public void removeNaNs() { | |
35 removeNaNs(new TDoubleArrayList [] { w, q, cw, kms }); | |
36 } | |
37 | |
33 | 38 |
34 /** | 39 /** |
35 * Adds a new row to this data pool with corrected W. | 40 * Adds a new row to this data pool with corrected W. |
36 * | 41 * |
37 * @param w a W. | 42 * @param w a W. |
51 * @param idx The position of the triple. | 56 * @param idx The position of the triple. |
52 * @param dst destination array | 57 * @param dst destination array |
53 * | 58 * |
54 * @return a 4dim array of [W, Q, Kms, CW] in dst. | 59 * @return a 4dim array of [W, Q, Kms, CW] in dst. |
55 */ | 60 */ |
61 @Override | |
56 public double[] get(int idx, double[] dst) { | 62 public double[] get(int idx, double[] dst) { |
57 dst = super.get(idx, dst); | 63 dst = super.get(idx, dst); |
58 | 64 |
59 if (dst.length < 4) { | 65 if (dst.length < 4) { |
60 return dst; | 66 return dst; |
61 } | 67 } |
62 | 68 |
63 if (cw != null && cw.size() > idx) { | 69 if (cw != null && cw.size() > idx) { |
64 dst[3] = cw.get(idx); | 70 dst[3] = cw.getQuick(idx); |
65 } | 71 } |
66 | 72 |
67 return dst; | 73 return dst; |
68 } | 74 } |
69 | 75 |