Package io.deephaven.api.agg.spec
Class AggSpecWAvg
java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecWAvg
- All Implemented Interfaces:
AggSpec
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.api.agg.spec.AggSpec
AggSpec.Visitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGet a simple description for this AggSpec.static AggSpecWAvgof(ColumnName weight) final <V extends AggSpec.Visitor>
Vwalk(V visitor) Glue method to deliver this AggSpec to aAggSpec.Visitor.abstract ColumnNameweight()Column name for the source of input weights.Methods inherited from class io.deephaven.api.agg.spec.AggSpecBase
aggregation, aggregation, aggregation
-
Constructor Details
-
AggSpecWAvg
public AggSpecWAvg()
-
-
Method Details
-
of
-
description
Description copied from interface:AggSpecGet a simple description for this AggSpec.- Returns:
- The description
-
weight
Column name for the source of input weights.- Returns:
- The weight column name
-
walk
Description copied from interface:AggSpecGlue method to deliver this AggSpec to aAggSpec.Visitor.- Parameters:
visitor- The visitor- Returns:
- The visitor
-