Package io.deephaven.api.agg.spec
Class AggSpecMedian
java.lang.Object
io.deephaven.api.agg.spec.AggSpecBase
io.deephaven.api.agg.spec.AggSpecMedian
- All Implemented Interfaces:
AggSpec
Specifier for a column aggregation that produces a median value from the input column's values for each group. Only
works for numeric or
Comparable input types.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.api.agg.spec.AggSpec
AggSpec.Visitor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanWhether to average the highest low-bucket value and lowest high-bucket value, when the low-bucket and high-bucket are of equal size.final StringGet a simple description for this AggSpec.static AggSpecMedianof()Create a new AggSpecMedian withaverageEvenlyDividedof true.static AggSpecMedianof(boolean averageEvenlyDivided) Create a new AggSpecMedian.final <V extends AggSpec.Visitor>
Vwalk(V visitor) Glue method to deliver this AggSpec to aAggSpec.Visitor.Methods inherited from class io.deephaven.api.agg.spec.AggSpecBase
aggregation, aggregation, aggregation
-
Field Details
-
AVERAGE_EVENLY_DIVIDED_DEFAULT
public static final boolean AVERAGE_EVENLY_DIVIDED_DEFAULT- See Also:
-
-
Constructor Details
-
AggSpecMedian
public AggSpecMedian()
-
-
Method Details
-
of
Create a new AggSpecMedian withaverageEvenlyDividedof true.- Returns:
- the agg spec
-
of
Create a new AggSpecMedian.- Parameters:
averageEvenlyDivided- seeaverageEvenlyDivided()- Returns:
- the agg spec
-
description
Description copied from interface:AggSpecGet a simple description for this AggSpec.- Returns:
- The description
-
averageEvenlyDivided
@Parameter public abstract boolean averageEvenlyDivided()Whether to average the highest low-bucket value and lowest high-bucket value, when the low-bucket and high-bucket are of equal size. Only applies to numeric types.- Returns:
- Whether to average the two result candidates for evenly-divided input sets of numeric types
-
walk
Description copied from interface:AggSpecGlue method to deliver this AggSpec to aAggSpec.Visitor.- Parameters:
visitor- The visitor- Returns:
- The visitor
-