Mercurial > hg > ishara
view arrows/ascan.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 672052bd81f8 |
children |
line wrap: on
line source
% ascan - Arrow to implement scanl. % % ascan :: ((A,S)->S), S -> arrow({A},{S},S). function o=ascan(sfn,x0) o=loop(@st,@(sz)x0); function [y,s]=st(x,s), s=sfn(x,s); y=s; end end