Class StatisticsUtil


  • public class StatisticsUtil
    extends Object
    Utility class to calculate statistical information.
    Author:
    carcassi
    • Constructor Detail

      • StatisticsUtil

        public StatisticsUtil()
    • Method Detail

      • statisticsOf

        public static Statistics statisticsOf​(CollectionNumber data)
        Calculates data statistics, excluding NaN values.
        Parameters:
        data - the data
        Returns:
        the calculated statistics
      • statisticsOf

        public static Statistics statisticsOf​(List<Statistics> data)
        Aggregates statistical information.
        Parameters:
        data - a list of statistical information
        Returns:
        the aggregate of all
      • lazyStatisticsOf

        public static Statistics lazyStatisticsOf​(CollectionNumber data)
        Creates the statistics, excluding NaN values, but the values are actually calculated when requested.
        Parameters:
        data - the data
        Returns:
        the calculated statistics