Error function should be ideal - actual, not other way around