public abstract class RankingImpl extends Object implements Ranking
| Modifier and Type | Method and Description |
|---|---|
Number |
getMaxValue()
Returns the maximum value in this ranking.
|
Number |
getMinValue()
Returns the minimum value in this ranking.
|
float |
normalize(Number value,
Interpolator interpolator)
Normalizes the given value with the interpolator.
|
public Number getMinValue()
RankinggetMinValue in interface Rankingpublic Number getMaxValue()
RankinggetMaxValue in interface Rankingpublic float normalize(Number value, Interpolator interpolator)
Ranking
The value is first put between zero and one by doing (value - min) / (max
- min) and then passed to the given interpolator.
Copyright © 2007–2017. All rights reserved.