Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/FlowDepthCalculationResult.java @ 8884:7a8c12706834
Work on SINFO-FlowDepth
author | gernotbelger |
---|---|
date | Tue, 13 Feb 2018 14:53:23 +0100 |
parents | 9f7a285b0ee3 |
children | cc86b0f9b3c3 |
comparison
equal
deleted
inserted
replaced
8883:a536e1aacf0f | 8884:7a8c12706834 |
---|---|
70 yPoints.add(row.getFlowDepth()); | 70 yPoints.add(row.getFlowDepth()); |
71 } | 71 } |
72 | 72 |
73 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() }; | 73 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() }; |
74 } | 74 } |
75 | |
76 public double[][] getFlowDepthTkhPoints() { | |
77 | |
78 final TDoubleArrayList xPoints = new TDoubleArrayList(this.rows.size()); | |
79 final TDoubleArrayList yPoints = new TDoubleArrayList(this.rows.size()); | |
80 | |
81 for (final FlowDepthRow row : this.rows) { | |
82 xPoints.add(row.getStation()); | |
83 yPoints.add(row.getFlowDepthWithTkh()); | |
84 } | |
85 | |
86 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() }; | |
87 } | |
88 | |
89 public double[][] getTkhPoints() { | |
90 final TDoubleArrayList xPoints = new TDoubleArrayList(this.rows.size()); | |
91 final TDoubleArrayList yPoints = new TDoubleArrayList(this.rows.size()); | |
92 | |
93 for (final FlowDepthRow row : this.rows) { | |
94 xPoints.add(row.getStation()); | |
95 yPoints.add(row.getTkh()); | |
96 } | |
97 | |
98 return new double[][] { xPoints.toNativeArray(), yPoints.toNativeArray() }; | |
99 } | |
75 } | 100 } |