(value, nfinite, result)
return nfinite, (_sum, square_sum)
Calculate the window sums of first/second degree with new value.
Calculate the window sums of first/second degree with new value.
Calculate the window sums of first / second degree with new value .
def put_sum2(value, nfinite, result):
    """Calculate the window sums of first/second degree with new value."""
    _sum, square_sum = result
    if numpy.isfinite(value):
        nfinite += 1
        _sum += value
        square_sum += value * value

    return nfinite, (_sum, square_sum)
def put_sum2 ( value , nfinite , result ) : _sum , square_sum = result if numpy . isfinite ( value ) : nfinite += 1 _sum += value square_sum += value * value return nfinite , ( _sum , square_sum )