update gaussian centriod method