class AdaptiveStreamFeatureStatistics implements StreamFeatureStatistics, Serializable {

	public void update(double feature) {
		this.count++;
		this.features.add(feature);
		this.sum += feature;
		this.squaresSum += Math.pow(feature, 2);

		if (this.features.size() > maxSize) {
			double first = this.features.removeFirst();
			this.sum -= first;
			this.squaresSum -= Math.pow(first, 2);
		}
	}

	public  AdaptiveStreamFeatureStatistics();
	public  AdaptiveStreamFeatureStatistics(long maxSize);

}