Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixCalculation.java @ 3729:e727e3ebdf85
Factored out a pure QW model to be more reusable.
flys-artifacts/trunk@5402 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 08 Sep 2012 14:19:40 +0000 |
parents | 2382b26079ac |
children | 3cda41b5eb23 |
comparison
equal
deleted
inserted
replaced
3728:d03e65378b9f | 3729:e727e3ebdf85 |
---|---|
45 | 45 |
46 protected static class FitResult { | 46 protected static class FitResult { |
47 | 47 |
48 protected Parameters parameters; | 48 protected Parameters parameters; |
49 protected KMIndex<QWD []> referenced; | 49 protected KMIndex<QWD []> referenced; |
50 protected KMIndex<QW []> outliers; | 50 protected KMIndex<QWI []> outliers; |
51 | 51 |
52 public FitResult() { | 52 public FitResult() { |
53 } | 53 } |
54 | 54 |
55 public FitResult( | 55 public FitResult( |
56 Parameters parameters, | 56 Parameters parameters, |
57 KMIndex<QWD []> referenced, | 57 KMIndex<QWD []> referenced, |
58 KMIndex<QW []> outliers | 58 KMIndex<QWI []> outliers |
59 ) { | 59 ) { |
60 this.parameters = parameters; | 60 this.parameters = parameters; |
61 this.referenced = referenced; | 61 this.referenced = referenced; |
62 this.outliers = outliers; | 62 this.outliers = outliers; |
63 } | 63 } |
68 | 68 |
69 public KMIndex<QWD []> getReferenced() { | 69 public KMIndex<QWD []> getReferenced() { |
70 return referenced; | 70 return referenced; |
71 } | 71 } |
72 | 72 |
73 public KMIndex<QW []> getOutliers() { | 73 public KMIndex<QWI []> getOutliers() { |
74 return outliers; | 74 return outliers; |
75 } | 75 } |
76 } // class FitResult | 76 } // class FitResult |
77 | 77 |
78 /** Helper class to bundle the meta information of a column | 78 /** Helper class to bundle the meta information of a column |
321 | 321 |
322 if (debug) { | 322 if (debug) { |
323 log.debug("number of kms: " + kms.length); | 323 log.debug("number of kms: " + kms.length); |
324 } | 324 } |
325 | 325 |
326 KMIndex<QW []> outliers = new KMIndex<QW []>(); | 326 KMIndex<QWI []> outliers = new KMIndex<QWI []>(); |
327 KMIndex<QWD []> referenced = new KMIndex<QWD []>(kms.length); | 327 KMIndex<QWD []> referenced = new KMIndex<QWD []>(kms.length); |
328 | 328 |
329 int kmIndex = results.columnIndex("km"); | 329 int kmIndex = results.columnIndex("km"); |
330 int chiSqrIndex = results.columnIndex("chi_sqr"); | 330 int chiSqrIndex = results.columnIndex("chi_sqr"); |
331 int maxQIndex = results.columnIndex("max_q"); | 331 int maxQIndex = results.columnIndex("max_q"); |