diff options
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/math/DoubleMinMax.java')
-rw-r--r-- | src/de/lmu/ifi/dbs/elki/math/DoubleMinMax.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/math/DoubleMinMax.java b/src/de/lmu/ifi/dbs/elki/math/DoubleMinMax.java index 5c7d3d74..cedfb389 100644 --- a/src/de/lmu/ifi/dbs/elki/math/DoubleMinMax.java +++ b/src/de/lmu/ifi/dbs/elki/math/DoubleMinMax.java @@ -4,7 +4,7 @@ package de.lmu.ifi.dbs.elki.math; This file is part of ELKI: Environment for Developing KDD-Applications Supported by Index-Structures - Copyright (C) 2011 + Copyright (C) 2012 Ludwig-Maximilians-Universität München Lehr- und Forschungseinheit für Datenbanksysteme ELKI Development Team @@ -165,4 +165,12 @@ public class DoubleMinMax extends DoubleDoublePair { } return ret; } + + /** + * Reset statistics. + */ + public void reset() { + first = Double.POSITIVE_INFINITY; + second = Double.NEGATIVE_INFINITY; + } } |