view general/numerical/closed2hopen.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents e44f49929e56
children
line wrap: on
line source
function x=closed2hopen(x)
% closed2hopen - convert closed interval to half-open interval
%
% closed2hopen :: [[N,2]] -> [[N,2]]
%
% The second column is assumed to be the upper limit of a closed
% interval. These upper limits are incremented to the next floating
% point number so that the result can be interpreted as a half-open
% interval equivalent to the original closed interval.

mx=x(:,2);
x(:,2)=mx+eps(mx);