Interface CorrelationState
-
- All Superinterfaces:
AccumulatorState,CovarianceState
public interface CorrelationState extends CovarianceState
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default doublegetCorrelation()doublegetM2X()doublegetM2Y()default voidmerge(CorrelationState otherState)voidsetM2X(double value)voidsetM2Y(double value)default voidupdate(double x, double y)-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy, getEstimatedSize
-
Methods inherited from interface io.trino.operator.aggregation.state.CovarianceState
getC2, getCount, getCovariancePopulation, getCovarianceSample, getMeanX, getMeanY, merge, setC2, setCount, setMeanX, setMeanY
-
-
-
-
Method Detail
-
getM2X
double getM2X()
-
setM2X
void setM2X(double value)
-
getM2Y
double getM2Y()
-
setM2Y
void setM2Y(double value)
-
update
default void update(double x, double y)- Specified by:
updatein interfaceCovarianceState
-
merge
default void merge(CorrelationState otherState)
-
getCorrelation
default double getCorrelation()
-
-