Class AggregationUtils
- java.lang.Object
-
- io.prestosql.operator.aggregation.AggregationUtils
-
public final class AggregationUtils extends Object
-
-
Method Summary
-
-
-
Method Detail
-
updateVarianceState
public static void updateVarianceState(VarianceState state, double value)
-
updateCentralMomentsState
public static void updateCentralMomentsState(CentralMomentsState state, double value)
-
updateCovarianceState
public static void updateCovarianceState(CovarianceState state, double x, double y)
-
getCovarianceSample
public static double getCovarianceSample(CovarianceState state)
-
getCovariancePopulation
public static double getCovariancePopulation(CovarianceState state)
-
updateCorrelationState
public static void updateCorrelationState(CorrelationState state, double x, double y)
-
getCorrelation
public static double getCorrelation(CorrelationState state)
-
updateRegressionState
public static void updateRegressionState(RegressionState state, double x, double y)
-
getRegressionSlope
public static double getRegressionSlope(RegressionState state)
-
getRegressionIntercept
public static double getRegressionIntercept(RegressionState state)
-
mergeVarianceState
public static void mergeVarianceState(VarianceState state, VarianceState otherState)
-
mergeCentralMomentsState
public static void mergeCentralMomentsState(CentralMomentsState state, CentralMomentsState otherState)
-
mergeCovarianceState
public static void mergeCovarianceState(CovarianceState state, CovarianceState otherState)
-
mergeCorrelationState
public static void mergeCorrelationState(CorrelationState state, CorrelationState otherState)
-
mergeRegressionState
public static void mergeRegressionState(RegressionState state, RegressionState otherState)
-
generateAggregationName
public static String generateAggregationName(String baseName, TypeSignature outputType, List<TypeSignature> inputTypes)
-
-