Added abstract method to ErrorMetric class.