(x, y, nfinite, result)
return nfinite, (sum_x, sum_y, sum_xy, sum_xx, sum_yy)
Calculate the window sums for corr with new value.
Calculate the window sums for corr with new value.
Calculate the window sums for corr with new value .
def put_corr(x, y, nfinite, result):
    """Calculate the window sums for corr with new value."""
    sum_x, sum_y, sum_xy, sum_xx, sum_yy = result
    if numpy.isfinite(x) and numpy.isfinite(y):
        nfinite += 1
        sum_x += x
        sum_y += y
        sum_xy += x * y
        sum_xx += x * x
        sum_yy += y * y

    return nfinite, (sum_x, sum_y, sum_xy, sum_xx, sum_yy)
def put_corr ( x , y , nfinite , result ) : sum_x , sum_y , sum_xy , sum_xx , sum_yy = result if numpy . isfinite ( x ) and numpy . isfinite ( y ) : nfinite += 1 sum_x += x sum_y += y sum_xy += x * y sum_xx += x * x sum_yy += y * y return nfinite , ( sum_x , sum_y , sum_xy , sum_xx , sum_yy )