Class Statistics

java.lang.Object
org.openhab.core.util.Statistics

@NonNullByDefault public class Statistics extends Object
The Statistics is a class with statistics helper methods.
Author:
Mark Herwege - Initial contribution
  • Constructor Details

    • Statistics

      public Statistics()
  • Method Details

    • median

      public static @Nullable BigDecimal median(List<BigDecimal> inputList)
      Find the median in a list of values
      Parameters:
      inputList -
      Returns:
      median of the values, null if the list is empty