Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityFilterFacet.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | e4606eae8ea5 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
26 /** | 26 /** |
27 * Facet of a FlowVelocity curve. | 27 * Facet of a FlowVelocity curve. |
28 */ | 28 */ |
29 public class FlowVelocityFilterFacet extends DataFacet { | 29 public class FlowVelocityFilterFacet extends DataFacet { |
30 | 30 |
31 private static Logger log = Logger.getLogger(FlowVelocityFilterFacet.class); | 31 private static Logger log = Logger.getLogger( |
32 FlowVelocityFilterFacet.class); | |
32 | 33 |
33 public FlowVelocityFilterFacet() { | 34 public FlowVelocityFilterFacet() { |
34 // required for clone operation deepCopy() | 35 // required for clone operation deepCopy() |
35 } | 36 } |
36 | 37 |
68 | 69 |
69 double radius = scales.getRadius(river, start, end); | 70 double radius = scales.getRadius(river, start, end); |
70 FlowVelocityData oldData = data[index]; | 71 FlowVelocityData oldData = data[index]; |
71 FlowVelocityData newData = new FlowVelocityData(); | 72 FlowVelocityData newData = new FlowVelocityData(); |
72 double[][] q = oldData.getQPoints(); | 73 double[][] q = oldData.getQPoints(); |
73 double[][] totalV = MovingAverage.weighted(oldData.getTotalChannelPoints(), radius); | 74 double[][] totalV = MovingAverage.weighted( |
74 double[][] mainV = MovingAverage.weighted(oldData.getMainChannelPoints(), radius); | 75 oldData.getTotalChannelPoints(), radius); |
75 double[][] tau = MovingAverage.weighted(oldData.getTauPoints(), radius); | 76 double[][] mainV = MovingAverage.weighted( |
77 oldData.getMainChannelPoints(), radius); | |
78 double[][] tau = MovingAverage.weighted( | |
79 oldData.getTauPoints(), radius); | |
76 for(int j = 0; j < q[0].length; j++) { | 80 for(int j = 0; j < q[0].length; j++) { |
77 newData.addKM(q[0][j]); | 81 newData.addKM(q[0][j]); |
78 newData.addQ(q[1][j]); | 82 newData.addQ(q[1][j]); |
79 newData.addTauMain(tau[1][j]); | 83 newData.addTauMain(tau[1][j]); |
80 newData.addVMain(mainV[1][j]); | 84 newData.addVMain(mainV[1][j]); |