Class StatisticsUtil

java.lang.Object
org.yamcs.studio.data.formula.StatisticsUtil

public class StatisticsUtil extends Object
Utility class to calculate statistical information.
  • Constructor Details

    • StatisticsUtil

      public StatisticsUtil()
  • Method Details

    • 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