Package org.h2.expression.aggregate
Class AggregateDataCorr
- java.lang.Object
-
- org.h2.expression.aggregate.AggregateData
-
- org.h2.expression.aggregate.AggregateDataBinarySet
-
- org.h2.expression.aggregate.AggregateDataCorr
-
final class AggregateDataCorr extends AggregateDataBinarySet
Data stored while calculating a CORR, REG_SLOPE, REG_INTERCEPT, or REGR_R2 aggregate.
-
-
Field Summary
Fields Modifier and Type Field Description private AggregateTypeaggregateTypeprivate longcountprivate doublem2xprivate doublem2yprivate doublemeanXprivate doublemeanYprivate doublesumXprivate doublesumYprivate doublesumYX
-
Constructor Summary
Constructors Constructor Description AggregateDataCorr(AggregateType aggregateType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(SessionLocal session, Value yValue, Value xValue)(package private) ValuegetValue(SessionLocal session)Get the aggregate result.-
Methods inherited from class org.h2.expression.aggregate.AggregateDataBinarySet
add
-
-
-
-
Field Detail
-
aggregateType
private final AggregateType aggregateType
-
count
private long count
-
sumY
private double sumY
-
sumX
private double sumX
-
sumYX
private double sumYX
-
m2y
private double m2y
-
meanY
private double meanY
-
m2x
private double m2x
-
meanX
private double meanX
-
-
Constructor Detail
-
AggregateDataCorr
AggregateDataCorr(AggregateType aggregateType)
-
-
Method Detail
-
add
void add(SessionLocal session, Value yValue, Value xValue)
- Specified by:
addin classAggregateDataBinarySet
-
getValue
Value getValue(SessionLocal session)
Description copied from class:AggregateDataGet the aggregate result.- Specified by:
getValuein classAggregateData- Parameters:
session- the session- Returns:
- the value
-
-