public enum StandardCalculator extends Enum<StandardCalculator> implements ContextualCalculator
TabularPivotModel.| Enum Constant and Description |
|---|
AVERAGE
Calculates the arithmetic average of data.
|
COUNT
Returns the count of data, including non-number entries.
|
COUNT_NUMBER
Returns the count of numerical data.
|
MAX
Calculates the maximum of data.
|
MIN
Calculates the minimum of data.
|
PRODUCT
Returns the arithmetic product of data.
|
STD_DEV
Returns the sample standard deviation.
|
STD_DEV_P
Returns the standard deviation of the sample.
|
SUM
Returns the arithmetic sum of data.
|
SUM_OR_COUNT
Returns the sum of data if the data entries are all numeric.
|
VARIANCE
Returns the variance corresponding to the sample standard deviation.
|
VARIANCE_P
Returns the variance corresponding to the standard deviation of the
sample.
|
| Modifier and Type | Method and Description |
|---|---|
StandardContextType |
getContextType()
Get the
ContextType. |
String |
getLabel() |
String |
getLabelKey() |
Number |
getResult(Context context)
Retrieve the aggregation result from the context.
|
static StandardCalculator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardCalculator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardCalculator SUM
public static final StandardCalculator COUNT
public static final StandardCalculator AVERAGE
public static final StandardCalculator MAX
public static final StandardCalculator MIN
public static final StandardCalculator SUM_OR_COUNT
public static final StandardCalculator COUNT_NUMBER
public static final StandardCalculator PRODUCT
public static final StandardCalculator STD_DEV
public static final StandardCalculator STD_DEV_P
public static final StandardCalculator VARIANCE
public static final StandardCalculator VARIANCE_P
public static StandardCalculator[] values()
for (StandardCalculator c : StandardCalculator.values()) System.out.println(c);
public static StandardCalculator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Number getResult(Context context)
ContextualCalculatorgetResult in interface ContextualCalculatorpublic StandardContextType getContextType()
ContextualCalculatorContextType.getContextType in interface ContextualCalculatorpublic String getLabel()
getLabel in interface Calculatorpublic String getLabelKey()
getLabelKey in interface CalculatorCopyright © 2023. All rights reserved.