Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (8 sloc) 206 Bytes
function mape = mape(y, z)
% mape(y,z) - returns Mean absolute error
% y = realized and z = predicted values
X = abs((y(:) - z(:)) ./ y(:));
X(isnan(X)) = 0;
X(isinf(X)) = 0;
mape = mean(X);
end
Jump to Line
Something went wrong with that request. Please try again.