Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/sq/Outlier.java @ 5396:aaf810d4ec82
Use new state 'outlier mehtod selection' in SQ-relation.
The outlier method is no more configurable in conf.xml. The user can now select
the method in SQ-relation parameters.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 25 Mar 2013 12:40:26 +0100 |
parents | 846b0441f905 |
children | 2fe120e1e4df |
comparison
equal
deleted
inserted
replaced
5395:5a55c5372fe1 | 5396:aaf810d4ec82 |
---|---|
17 private static Logger log = Logger.getLogger(Outlier.class); | 17 private static Logger log = Logger.getLogger(Outlier.class); |
18 | 18 |
19 private static final String OUTLIER_METHOD = | 19 private static final String OUTLIER_METHOD = |
20 "/artifact-database/options/minfo-sq/outlier-method/@name"; | 20 "/artifact-database/options/minfo-sq/outlier-method/@name"; |
21 | 21 |
22 private static final String GRUBBS = "grubbs"; | 22 private static final String GRUBBS = "outlier.method.grubbs"; |
23 | 23 |
24 //private static final String STD_DEV = "std-dev"; | 24 //private static final String STD_DEV = "std-dev"; |
25 | 25 |
26 public interface Callback { | 26 public interface Callback { |
27 | 27 |
37 } // interface Callback | 37 } // interface Callback |
38 | 38 |
39 public static void detectOutliers( | 39 public static void detectOutliers( |
40 Callback callback, | 40 Callback callback, |
41 List<SQ> sqs, | 41 List<SQ> sqs, |
42 double stdDevFactor | 42 double stdDevFactor, |
43 String method | |
43 ) | 44 ) |
44 throws MathException | 45 throws MathException |
45 { | 46 { |
46 boolean debug = log.isDebugEnabled(); | 47 boolean debug = log.isDebugEnabled(); |
47 | |
48 String method = Config.getStringXPath(OUTLIER_METHOD); | |
49 | 48 |
50 if (method == null) { | 49 if (method == null) { |
51 method = "std-dev"; | 50 method = "std-dev"; |
52 } | 51 } |
53 | 52 |