public class AffineNormalizer extends Object implements Normalizer
Constructor and Description |
---|
AffineNormalizer(double min,
double max) |
Modifier and Type | Method and Description |
---|---|
double |
getMax()
Returns the maximum possible value, which will be mapped to 1.
|
double |
getMin()
Returns the minimum possible value, which will be mapped to 0.
|
double |
normalize(double distance) |
void |
setMax(double max)
Sets the maximum possible value, which will be mapped to 1.
|
void |
setMin(double min)
Sets the minimum possible value, which will be mapped to 0.
|
public void setMax(double max)
max
- the maximum possible value, which will be mapped to 1.public double getMax()
public void setMin(double min)
min
- the minimum possible value, which will be mapped to 0.public double getMin()
public double normalize(double distance)
normalize
in interface Normalizer
distance
- a distance value between 0 and infinity.Copyright (C) 2013-2015 Benjamin Paaßen, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs