Mercurial > hg > ishara
annotate general/numerical/scalar/linterp.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | db7f4afd27c5 |
children |
rev | line source |
---|---|
samer@4 | 1 function z=linterp(k,z0,z) |
samer@4 | 2 % linterp - linear interpolation between values |
samer@4 | 3 % |
samer@4 | 4 % linterp :: |
samer@4 | 5 % [Size] ~'fraction of distance to travel from from initial to final point', |
samer@4 | 6 % [Size] ~'initial point', |
samer@4 | 7 % [Size] ~'final point' |
samer@4 | 8 % -> [Size] ~'interpolated point'. |
samer@4 | 9 |
samer@4 | 10 z = z0+k.*(z-z0); |