AdaptiveRandomForest-master/src/main/java/moa/classifiers/rules/errormeasurers/ErrorMeasurement.java
package moa.classifiers.rules.errormeasurers;

import com.github.javacliparser.FloatOption;
import com.yahoo.labs.samoa.instances.Instance;

import moa.AbstractMOAObject;

abstract public class ErrorMeasurement extends AbstractMOAObject {
	
	public FloatOption fadingErrorFactorOption = new FloatOption(
			"fadingErrorFactor", 'e', 
			"Fading factor for the error", 0.99, 0, 1);

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	protected double fadingErrorFactor;
	abstract public void addPrediction(double [] prediction, Instance inst);
	
	abstract public double getCurrentError();

	public ErrorMeasurement(){
		fadingErrorFactor=fadingErrorFactorOption.getValue();
	}
	@Override
	public void getDescription(StringBuilder sb, int indent) {
		// TODO Auto-generated method stub

	}

}
