annotate 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 |
|
rev |
line source |
samer@4
|
1 function x=closed2hopen(x)
|
samer@4
|
2 % closed2hopen - convert closed interval to half-open interval
|
samer@4
|
3 %
|
samer@4
|
4 % closed2hopen :: [[N,2]] -> [[N,2]]
|
samer@4
|
5 %
|
samer@4
|
6 % The second column is assumed to be the upper limit of a closed
|
samer@4
|
7 % interval. These upper limits are incremented to the next floating
|
samer@4
|
8 % point number so that the result can be interpreted as a half-open
|
samer@4
|
9 % interval equivalent to the original closed interval.
|
samer@4
|
10
|
samer@4
|
11 mx=x(:,2);
|
samer@4
|
12 x(:,2)=mx+eps(mx);
|