diff options
Diffstat (limited to 'src/de/lmu/ifi/dbs/elki/distance/distancevalue/FloatDistance.java')
-rw-r--r-- | src/de/lmu/ifi/dbs/elki/distance/distancevalue/FloatDistance.java | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/src/de/lmu/ifi/dbs/elki/distance/distancevalue/FloatDistance.java b/src/de/lmu/ifi/dbs/elki/distance/distancevalue/FloatDistance.java index 2e88b147..f72d5c1b 100644 --- a/src/de/lmu/ifi/dbs/elki/distance/distancevalue/FloatDistance.java +++ b/src/de/lmu/ifi/dbs/elki/distance/distancevalue/FloatDistance.java @@ -4,7 +4,7 @@ package de.lmu.ifi.dbs.elki.distance.distancevalue; This file is part of ELKI: Environment for Developing KDD-Applications Supported by Index-Structures - Copyright (C) 2012 + Copyright (C) 2013 Ludwig-Maximilians-Universität München Lehr- und Forschungseinheit für Datenbanksysteme ELKI Development Team @@ -88,40 +88,6 @@ public class FloatDistance extends NumberDistance<FloatDistance, Float> { return new FloatDistance((float) val); } - @Override - public FloatDistance plus(FloatDistance distance) { - return new FloatDistance(value + distance.value); - } - - @Override - public FloatDistance minus(FloatDistance distance) { - return new FloatDistance(value - distance.value); - } - - /** - * Returns a new distance as the product of this distance and the given - * distance. - * - * @param distance the distance to be multiplied with this distance - * @return a new distance as the product of this distance and the given - * distance - */ - public FloatDistance times(FloatDistance distance) { - return new FloatDistance(value * distance.value); - } - - /** - * Returns a new distance as the product of this distance and the given float - * value. - * - * @param lambda the float value this distance should be multiplied with - * @return a new distance as the product of this distance and the given double - * value - */ - public FloatDistance times(float lambda) { - return new FloatDistance(value * lambda); - } - /** * Writes the float value of this FloatDistance to the specified stream. */ @@ -232,7 +198,7 @@ public class FloatDistance extends NumberDistance<FloatDistance, Float> { @Override public String toString() { - return FormatUtil.NF8.format(value); + return FormatUtil.NF.format(value); } @Override |