Package tech.tablesaw.aggregate
Class NumericAggregateFunction
- java.lang.Object
-
- tech.tablesaw.aggregate.AggregateFunction<NumericColumn<?>,Double>
-
- tech.tablesaw.aggregate.NumericAggregateFunction
-
public abstract class NumericAggregateFunction extends AggregateFunction<NumericColumn<?>,Double>
A partial implementation of aggregate functions to summarize over a numeric column
-
-
Constructor Summary
Constructors Constructor Description NumericAggregateFunction(String name)Constructs a NumericAggregateFunction with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCompatibleColumn(ColumnType type)Returns true if the givenColumnTypeis compatible with this functionColumnTypereturnType()Returns theColumnTypeto be used for the values returned by this function-
Methods inherited from class tech.tablesaw.aggregate.AggregateFunction
functionName, summarize, toString
-
-
-
-
Constructor Detail
-
NumericAggregateFunction
public NumericAggregateFunction(String name)
Constructs a NumericAggregateFunction with the given name. The name may be used to name a column in the output when this function is used bySummarizer
-
-
Method Detail
-
isCompatibleColumn
public boolean isCompatibleColumn(ColumnType type)
Returns true if the givenColumnTypeis compatible with this function- Specified by:
isCompatibleColumnin classAggregateFunction<NumericColumn<?>,Double>
-
returnType
public ColumnType returnType()
Returns theColumnTypeto be used for the values returned by this function- Specified by:
returnTypein classAggregateFunction<NumericColumn<?>,Double>
-
-