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 boolean
isCompatibleColumn(ColumnType type)
Returns true if the givenColumnType
is compatible with this functionColumnType
returnType()
Returns theColumnType
to 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 givenColumnType
is compatible with this function- Specified by:
isCompatibleColumn
in classAggregateFunction<NumericColumn<?>,Double>
-
returnType
public ColumnType returnType()
Returns theColumnType
to be used for the values returned by this function- Specified by:
returnType
in classAggregateFunction<NumericColumn<?>,Double>
-
-