Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java @ 6434:898afcce1d0a
Partial fix for flys/1303
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 26 Jun 2013 13:33:15 +0200 |
parents | af13ceeba52a |
children | 0f0f09badd29 |
comparison
equal
deleted
inserted
replaced
6433:2874e16c2cc6 | 6434:898afcce1d0a |
---|---|
10 | 10 |
11 import java.io.Serializable; | 11 import java.io.Serializable; |
12 | 12 |
13 import org.dive4elements.river.artifacts.math.Linear; | 13 import org.dive4elements.river.artifacts.math.Linear; |
14 import org.dive4elements.river.artifacts.math.Function; | 14 import org.dive4elements.river.artifacts.math.Function; |
15 import org.dive4elements.river.utils.DoubleUtil; | |
15 | 16 |
16 import java.util.Arrays; | 17 import java.util.Arrays; |
17 import java.util.ArrayList; | 18 import java.util.ArrayList; |
18 import java.util.List; | 19 import java.util.List; |
19 import java.util.Collections; | 20 import java.util.Collections; |
324 } | 325 } |
325 | 326 |
326 splineWs[i] = wws; | 327 splineWs[i] = wws; |
327 splineQs[i] = wqs; | 328 splineQs[i] = wqs; |
328 } | 329 } |
330 | |
331 DoubleUtil.sortByFirst(splineQs, splineWs); | |
329 | 332 |
330 SplineInterpolator interpolator = new SplineInterpolator(); | 333 SplineInterpolator interpolator = new SplineInterpolator(); |
331 | 334 |
332 try { | 335 try { |
333 PolynomialSplineFunction spline = | 336 PolynomialSplineFunction spline = |