annotate general/numerical/scalar/linterp_d.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_d(k,z0,d)
samer@4 2 % linterp_d - linear interpolation between two points
samer@4 3 %
samer@4 4 % linterp_d ::
samer@4 5 % real ~'fraction of distance to travel from from initial to final point',
samer@4 6 % [Size] ~'initial point',
samer@4 7 % [Size] ~'vector from initial to final point'
samer@4 8 % -> [Size] ~'interpolated point'.
samer@4 9 %
samer@4 10 % Definition is linterp_d(k,z0,d) = linterp(k,z0,z0+d)
samer@4 11 %
samer@4 12 % See also: LINTERP, VLINTERP
samer@4 13
samer@4 14 z = z0+k.*d;