Class QuantityTypeArithmeticGroupFunction.Median

java.lang.Object
org.openhab.core.library.types.QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction
org.openhab.core.library.types.QuantityTypeArithmeticGroupFunction.Median
All Implemented Interfaces:
GroupFunction
Enclosing interface:
QuantityTypeArithmeticGroupFunction

public static class QuantityTypeArithmeticGroupFunction.Median extends QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction
This calculates the numeric median over all item states of QuantityType.
  • Constructor Details

    • Median

      public Median(Class<? extends javax.measure.Quantity<?>> dimension, @Nullable Item baseItem)
  • Method Details

    • calculate

      public State calculate(@Nullable Set<Item> items)
      Description copied from interface: GroupFunction
      Determines the current state of a group based on a list of items
      Parameters:
      items - the items to calculate a group state for
      Returns:
      the calculated group state