crossStat

Syntax

crossStat(X, Y)

Arguments

X and Y are numeric vectors of the same size.

Details

Return a tuple with the following elements: count(X), sum(X), sum(Y), sum2(X), sum2(Y), sum(X*Y)

Examples

x=1 NULL 2 3
y=4 3 NULL 2
crossStat(x,y);
// output
(2,4,6,10,20,10)