package lpv;

public class ErrorMetric {
	
	public float averageAbsoluteError;
	public float averageRelativeError;
	
	public float maxAbsoluteError;
	public float maxRelativeError;
	
	public float cumulativeAbsoluteError;
	
	public ErrorMetric() {
		this.averageAbsoluteError = 0.0f;
		this.averageRelativeError = 0.0f;
		this.maxAbsoluteError = 0.0f;
		this.maxRelativeError = 0.0f;
		this.cumulativeAbsoluteError = 0.0f;
	}

	@Override
	public String toString() {
		return String.format("Error report [AAE: %12.6f, ARE: %12.6f, MAE: %12.6f, MRE: %12.6f, CAE: %12.6f]", 
				averageAbsoluteError, averageRelativeError, 
				maxAbsoluteError, maxRelativeError, 
				cumulativeAbsoluteError);
	}
}
