public abstract class AbstractSingleValueCollectorFunction extends AbstractFunction
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic |
collector |
ABSOLUTE, EXPRESSION_EDITOR_OPTIONS, GROUP_COLOR_PROCESSING, GROUP_CONTEXT_RELATED, GROUP_DATA_BLOCK_PROCESSING, GROUP_DATA_TABLE_PROCESSING, GROUP_DATE_TIME_PROCESSING, GROUP_MATH, GROUP_NUMBER_PROCESSING, GROUP_OTHER, GROUP_STRING_PROCESSING, GROUP_SYSTEM, GROUP_TYPE_CONVERSION, HAS_RESOLVER| Constructor and Description |
|---|
AbstractSingleValueCollectorFunction(org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic collector,
java.lang.String name,
java.lang.String category,
java.lang.String parametersFootprint,
java.lang.String returnValue,
java.lang.String description)
Note: If
collector is null, developer should override collect(DataTable table, FieldFormat ff), otherwise current implementation will throw EvaluationException. |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
collect(DataTable table,
FieldFormat ff) |
protected java.lang.Object |
compare(java.lang.Number first,
java.lang.Number second) |
java.lang.Object |
execute(Evaluator evaluator,
EvaluationEnvironment environment,
java.lang.Object... parameters) |
protected double[] |
toArray(DataTable table,
FieldFormat ff) |
checkAndGetNumericTypeField, checkNumericTypeField, checkParameters, checkParameterType, executeAttributed, executeTasks, getCategory, getDescription, getName, getParametersFootprint, getReturnValue, resolveContext, resolveContextprotected final org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic collector
public AbstractSingleValueCollectorFunction(@Nullable
org.apache.commons.math3.stat.descriptive.AbstractStorelessUnivariateStatistic collector,
java.lang.String name,
java.lang.String category,
java.lang.String parametersFootprint,
java.lang.String returnValue,
java.lang.String description)
collector is null, developer should override collect(DataTable table, FieldFormat ff), otherwise current implementation will throw EvaluationException.ModeFunctionprotected java.lang.Object compare(java.lang.Number first,
java.lang.Number second)
public java.lang.Object execute(Evaluator evaluator, EvaluationEnvironment environment, java.lang.Object... parameters) throws EvaluationException
EvaluationExceptionprotected java.lang.Object collect(DataTable table, FieldFormat ff) throws EvaluationException
EvaluationExceptionprotected double[] toArray(DataTable table, FieldFormat ff)