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
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Get a simple description for this AggSpec.static AggSpecWAvg
of
(ColumnName weight) final <V extends AggSpec.Visitor>
Vwalk
(V visitor) Glue method to deliver this AggSpec to aAggSpec.Visitor
.abstract ColumnName
weight()
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:AggSpec
Get 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:AggSpec
Glue method to deliver this AggSpec to aAggSpec.Visitor
.- Parameters:
visitor
- The visitor- Returns:
- The visitor
-