Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 451:73bc64c4a7b0
Use new logic to calculate "W für ungleichwertige Abfluesse". Not working yet.
flys-artifacts/trunk@1946 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 18 May 2011 17:37:06 +0000 |
parents | 6ab62e5b05b5 |
children | 7137ef65c17c |
comparison
equal
deleted
inserted
replaced
450:c8bb38115290 | 451:73bc64c4a7b0 |
---|---|
904 * @param to The upper value. | 904 * @param to The upper value. |
905 * @param step The step width between two values in the result array. | 905 * @param step The step width between two values in the result array. |
906 * | 906 * |
907 * @return an array of double values. | 907 * @return an array of double values. |
908 */ | 908 */ |
909 public double[] getExplodedValues(double from, double to, double step) { | 909 public static double[] getExplodedValues(double from, double to, double step) { |
910 double lower = from; | 910 double lower = from; |
911 | 911 |
912 double diff = to - from; | 912 double diff = to - from; |
913 double tmp = diff / step; | 913 double tmp = diff / step; |
914 int num = (int) Math.ceil(tmp) ; | 914 int num = (int) Math.ceil(tmp) ; |