Class RankingImpl

    • Constructor Detail

      • RankingImpl

        public RankingImpl()
    • Method Detail

      • setInterpolator

        public void setInterpolator​(Interpolator interpolator)
      • getNormalizedValue

        public float getNormalizedValue​(org.gephi.graph.api.Element element,
                                        org.gephi.graph.api.Graph graph)
        Description copied from interface: Ranking
        Returns the element's normalized value for this ranking.
        Specified by:
        getNormalizedValue in interface Ranking
        Parameters:
        element - element to get the value for
        graph - graph this element belongs to
        Returns:
        the normalized value for this ranking
      • normalize

        public float normalize​(Number value,
                               Interpolator interpolator,
                               Number minValue,
                               Number maxValue)
        Description copied from interface: Ranking
        Normalizes the given value with the interpolator.

        The value is first put between zero and one by doing (value - min) / (max - min) and then passed to the given interpolator.

        Specified by:
        normalize in interface Ranking
        Parameters:
        value - value to normalize
        interpolator - interpolator
        Returns:
        normalized value
      • isValid

        public abstract boolean isValid​(org.gephi.graph.api.Graph graph)
      • getColumn

        public org.gephi.graph.api.Column getColumn()
        Description copied from interface: Ranking
        Returns the column associated with this partition.
        Specified by:
        getColumn in interface Ranking
        Returns:
        column or null if partition not based on a column