Class AggSpecWAvg

java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecWAvg
All Implemented Interfaces:
AggSpec

@Immutable public abstract class AggSpecWAvg extends AggSpecBase
Specifies an aggregation that outputs the average (arithmetic mean) of the input column values weighted by the weight column values for each group. Only works for numeric input types.
See Also:
  • Constructor Details

    • AggSpecWAvg

      public AggSpecWAvg()
  • Method Details

    • of

      public static AggSpecWAvg of(ColumnName weight)
    • description

      public final String description()
      Description copied from interface: AggSpec
      Get a simple description for this AggSpec.
      Returns:
      The description
    • weight

      @Parameter public abstract ColumnName weight()
      Column name for the source of input weights.
      Returns:
      The weight column name
    • walk

      public final <V extends AggSpec.Visitor> V walk(V visitor)
      Description copied from interface: AggSpec
      Glue method to deliver this AggSpec to a AggSpec.Visitor.
      Parameters:
      visitor - The visitor
      Returns:
      The visitor