public class Statistics extends Object
Group instead.ScalarValuedFunction,
DeriveFields| Constructor and Description |
|---|
Statistics() |
| Modifier and Type | Method and Description |
|---|---|
static ScalarValuedFunction |
avg(List<ScalarValuedFunction> exprs)
Builds an expression computing the average of the specified expressions.
|
static ScalarValuedFunction |
avg(String... fields)
Builds an expression computing the average of the values of the specified fields.
|
static ScalarValuedFunction |
wavg(List<ScalarValuedFunction> exprs,
double[] weights)
Builds an expression computing the weighted average of the values of the specified expressions.
|
static ScalarValuedFunction |
wavg(String[] fields,
double[] weights)
Builds an expression computing the weighted average of the values of the specified fields.
|
public static ScalarValuedFunction avg(String... fields)
fields - the fields to include in the averagepublic static ScalarValuedFunction avg(List<ScalarValuedFunction> exprs)
exprs - the expressions to include in the averagepublic static ScalarValuedFunction wavg(String[] fields, double[] weights)
fields - the fields to include in the averageweights - the weights to apply to each fieldcom.pervasive.datarush.graphs.physical.InvalidPropertyValueException - if the number of weights does not match the number of
fieldspublic static ScalarValuedFunction wavg(List<ScalarValuedFunction> exprs, double[] weights)
exprs - the expressions to include in the averageweights - the weights to apply to each expressioncom.pervasive.datarush.graphs.physical.InvalidPropertyValueException - if the number of weights does not match the number of
expressions or if no expressions are suppliedCopyright © 2020 Actian Corporation. All rights reserved.