class FixedStreamFeatureStatistics implements StreamFeatureStatistics, Serializable {

	public void update(double feature) {
		this.count = this.count + 1;
		double delta = feature - this.mean;
		this.mean = this.mean + delta / this.count;
		this.m2 = this.m2 + delta * (feature - this.mean);
	}

}