Class AbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointList

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>, Collection<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>, List<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>, RandomAccess
    Enclosing class:
    AbstractSumAggregatorBucket<G>

    public static final class AbstractSumAggregatorBucket.SortableDoubleAggregatorDataPointList
    extends ArrayList<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
    A list of row values.
    See Also:
    Serialized Form
    • Method Detail

      • sort

        public void sort​(Comparator<? super de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> p_comparator)
        Sorts this list according to the order induced by the specified Comparator.
        Specified by:
        sort in interface List<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
        Overrides:
        sort in class ArrayList<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint>
      • byValue

        public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> byValue()
        Compare by value.
        Returns:
        The comparator.
      • byRowCaseSensitive

        public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> byRowCaseSensitive()
        Compare by row (case-sensitive).
        Returns:
        The comparator.
      • byRowCaseInsensitive

        public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> byRowCaseInsensitive()
        Compare by row (case-insensitive).
        Returns:
        The comparator.
      • bySingleIdCaseSensitive

        public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> bySingleIdCaseSensitive()
        Compare by single ID (case-sensitive).
        Returns:
        The comparator.
      • bySingleIdCaseInsensitive

        public Comparator<de.uplanet.lucy.server.auxiliaries.chart.DoubleAggregatorDataPoint> bySingleIdCaseInsensitive()
        Compare by row (case-insensitive).
        Returns:
        The comparator.
      • getRowMin

        public double getRowMin()
        Get the minimum row value.
        Returns:
        The minimum row value.
      • getRowMax

        public double getRowMax()
        Get the maximum row value.
        Returns:
        The maximum row value.
      • getRowSum

        public double getRowSum()
        Get the sum of all row values, or zero if no values have been recorded.
        Returns:
        The sum of all row values.
      • getRowAverage

        public double getRowAverage()
        Get the arithmetic mean of row values recorded, or zero if no values have been recorded.
        Returns:
        The average.
      • clearRowStatistics

        public void clearRowStatistics()
        Clear already calculated statistics.

        This method is useful in situations where the list has been modified after the statistics have been calculated.