1. Modified the updating strategy of variance.

Signed-off-by: vanilla <lj@unary.com.cn>