% zeromin - shift values so minimum is zero
%
% zeromin :: 
%    [D:[[E]]] ~'E dimensional array of size D', 
%    1..D      ~'dimension to normalise along' 
% -> [D] ~'shifted data'.
%
% Dimension defaults to 1.
function x=zeromin(x,dim), x=addnorm(@(y)min(y,[],dim),x); end

