Uses of Class
tech.tablesaw.aggregate.AggregateFunction
-
Packages that use AggregateFunction Package Description tech.tablesaw.aggregate tech.tablesaw.api tech.tablesaw.table -
-
Uses of AggregateFunction in tech.tablesaw.aggregate
Subclasses of AggregateFunction in tech.tablesaw.aggregate Modifier and Type Class Description class
AnyIntAggregateFunction
Partial implementation of AggregateFunction that returns an integer when applied to a column of any typeclass
BooleanAggregateFunction
A partial implementation of aggregate functions to summarize over a boolean columnclass
BooleanDoubleAggregateFunction
Partial implementation of Aggregate function that returns a Double value when applied to a BooleanColumnclass
BooleanIntAggregateFunction
A partial implementation of an AggregateFunction that returns an Integer value when applied to a Boolean Columnclass
DateAggregateFunction
A partial implementation of aggregate functions to summarize over a date columnclass
DateTimeAggregateFunction
A partial implementation of aggregate functions to summarize over a dateTime columnclass
InstantAggregateFunction
A partial implementation of aggregate functions to summarize over an instant columnclass
NumericAggregateFunction
A partial implementation of aggregate functions to summarize over a numeric columnclass
StringAggregateFunction
A partial implementation of aggregate functions to summarize over a StringColumn and return a Stringclass
TimeAggregateFunction
A partial implementation of aggregate functions to summarize over a time columnMethods in tech.tablesaw.aggregate with parameters of type AggregateFunction Modifier and Type Method Description static Table
PivotTable. pivot(Table table, CategoricalColumn<?> column1, CategoricalColumn<?> column2, NumericColumn<?> values, AggregateFunction<?,?> aggregateFunction)
Returns a table that is a rotation of the given table pivoted around the key columns, and filling the output cells using the values calculated by theaggregateFunction
when applied to thevalues column
grouping by the key columnsConstructors in tech.tablesaw.aggregate with parameters of type AggregateFunction Constructor Description Summarizer(Table sourceTable, List<String> columnNames, AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given column in the given sourceTable, by applying the given functionsSummarizer(Table sourceTable, Column<?> column, AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given column in the given sourceTable, by applying the given functionsSummarizer(Table sourceTable, Column<?> column1, Column<?> column2, AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable, by applying the given functionsSummarizer(Table sourceTable, Column<?> column1, Column<?> column2, Column<?> column3, AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given column2 in the given sourceTable, by applying the given functionsSummarizer(Table sourceTable, Column<?> column1, Column<?> column2, Column<?> column3, Column<?> column4, AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable, by applying the given functions -
Uses of AggregateFunction in tech.tablesaw.api
Methods in tech.tablesaw.api with parameters of type AggregateFunction Modifier and Type Method Description Table
Table. pivot(String column1Name, String column2Name, String column3Name, AggregateFunction<?,?> aggregateFunction)
Returns a pivot on this table, where: The first column contains unique values from the index column1 There are n additional columns, one for each unique value in column2 The values in each of the cells in these new columns are the result of applying the given AggregateFunction to the data in column3, grouped by the values of column1 and column2Table
Table. pivot(CategoricalColumn<?> column1, CategoricalColumn<?> column2, NumericColumn<?> column3, AggregateFunction<?,?> aggregateFunction)
Returns a pivot on this table, where: The first column contains unique values from the index column1 There are n additional columns, one for each unique value in column2 The values in each of the cells in these new columns are the result of applying the given AggregateFunction to the data in column3, grouped by the values of column1 and column2Summarizer
Table. summarize(String col1Name, String col2Name, String col3Name, String col4Name, AggregateFunction<?,?>... functions)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(String col1Name, String col2Name, String col3Name, AggregateFunction<?,?>... functions)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(String numericColumn1Name, String numericColumn2Name, AggregateFunction<?,?>... functions)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(String columName, AggregateFunction<?,?>... functions)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(List<String> columnNames, AggregateFunction<?,?>... functions)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(Column<?> numberColumn, AggregateFunction<?,?>... function)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(Column<?> column1, Column<?> column2, AggregateFunction<?,?>... function)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(Column<?> column1, Column<?> column2, Column<?> column3, AggregateFunction<?,?>... function)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions.Summarizer
Table. summarize(Column<?> column1, Column<?> column2, Column<?> column3, Column<?> column4, AggregateFunction<?,?>... function)
Returns aSummarizer
that can be used to summarize the column with the given name(s) using the given functions. -
Uses of AggregateFunction in tech.tablesaw.table
Methods in tech.tablesaw.table with parameters of type AggregateFunction Modifier and Type Method Description Table
TableSliceGroup. aggregate(String colName1, AggregateFunction<?,?>... functions)
Applies the given aggregation to the given column.<INCOL extends Column<?>,OUT>
Column<?>RollingColumn. calc(AggregateFunction<INCOL,OUT> function)
Performs the calculation and returns a new column containing the resultsprotected String
RollingColumn. generateNewColumnName(AggregateFunction<?,?> function)
Generates a name for the column based on the name of the original column and the function used in the calculationMethod parameters in tech.tablesaw.table with type arguments of type AggregateFunction Modifier and Type Method Description Table
TableSliceGroup. aggregate(com.google.common.collect.ListMultimap<String,AggregateFunction<?,?>> functions)
Applies the given aggregations to the given columns.
-