|
|
@ -146,9 +146,8 @@ namespace MathNet.Numerics.Statistics |
|
|
meanB += rY; |
|
|
meanB += rY; |
|
|
varB += sumWeight*deltaY*rY; |
|
|
varB += sumWeight*deltaY*rY; |
|
|
|
|
|
|
|
|
|
|
|
covariance += deltaX*deltaY*wi*(sumWeight/temp); |
|
|
sumWeight = temp; |
|
|
sumWeight = temp; |
|
|
|
|
|
|
|
|
covariance += deltaX*deltaY*(n - 1)*wi/n; |
|
|
|
|
|
} |
|
|
} |
|
|
if (ieB.MoveNext()) |
|
|
if (ieB.MoveNext()) |
|
|
{ |
|
|
{ |
|
|
|