public interface Ranking
This interface has underlying access to the elements value so it can return the minimum and maximum values.
Modifier and Type | Method and Description |
---|---|
Number |
getMaxValue()
Returns the maximum value in this ranking.
|
Number |
getMinValue()
Returns the minimum value in this ranking.
|
Number |
getValue(Element element,
Graph graph)
Returns the element's value for this ranking.
|
float |
normalize(Number value,
Interpolator interpolator)
Normalizes the given value with the interpolator.
|
Number getMinValue()
Number getMaxValue()
Number getValue(Element element, Graph graph)
element
- element to get the value forgraph
- graph this element belongs tofloat normalize(Number value, Interpolator interpolator)
The value is first put between zero and one by doing (value - min) / (max
- min)
and then passed to the given interpolator.
value
- value to normalizeinterpolator
- interpolatorCopyright © 2007–2015 Gephi Consortium. All rights reserved.