annotate dsp/linlogspace.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents c3b0cd708782
children
rev   line source
samer@32 1 % linlogspace - joined linear/log map
samer@32 2 %
samer@32 3 % linlogspace ::
samer@32 4 % F0:nonneg ~'starting of linear ramp',
samer@32 5 % F1:nonneg ~'crossover from linear to log',
samer@32 6 % N1:natural ~'number of steps in linear part',
samer@32 7 % R1:nonneg ~'ratio of increase in log part',
samer@32 8 % N2:nonneg ~'number of steps in log part'
samer@32 9 % -> [[1,1+N1+N2]->nonneg].
samer@32 10
samer@32 11 function f=linlogspace(f0,f1,n1,r1,n2), f = [ linspace(f0, f1, n1), f1*r1.^(1:n2) ]; end