comparison artifacts/src/main/java/org/dive4elements/river/artifacts/math/StdDevOutlier.java @ 9726:0a5239a1e46e 3.2.x

Upgrade to Log4j 2
author Tom Gottfried <tom@intevation.de>
date Wed, 02 Mar 2022 10:26:50 +0100
parents 5e38e2924c07
children
comparison
equal deleted inserted replaced
9725:da398790fa32 9726:0a5239a1e46e
8 8
9 package org.dive4elements.river.artifacts.math; 9 package org.dive4elements.river.artifacts.math;
10 10
11 import java.util.List; 11 import java.util.List;
12 12
13 import org.apache.log4j.Logger; 13 import org.apache.logging.log4j.Logger;
14 import org.apache.logging.log4j.LogManager;
14 15
15 /* XXX: 16 /* XXX:
16 * Warning: This class is called StdDevOutlier because it caculates the 17 * Warning: This class is called StdDevOutlier because it caculates the
17 * Standard Deviation method for outlier removal as the BFG calls it. 18 * Standard Deviation method for outlier removal as the BFG calls it.
18 * But the actual calculation used to remove the outliers calculates 19 * But the actual calculation used to remove the outliers calculates
20 21
21 public class StdDevOutlier 22 public class StdDevOutlier
22 { 23 {
23 public static final double DEFAULT_FACTOR = 3; 24 public static final double DEFAULT_FACTOR = 3;
24 25
25 private static Logger log = Logger.getLogger(StdDevOutlier.class); 26 private static Logger log = LogManager.getLogger(StdDevOutlier.class);
26 27
27 protected StdDevOutlier() { 28 protected StdDevOutlier() {
28 } 29 }
29 30
30 public static Integer findOutlier(List<Double> values) { 31 public static Integer findOutlier(List<Double> values) {

http://dive4elements.wald.intevation.org