Mercurial > hg > ishara
view arrows/@unfolder/unfolder.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | ae596261e75f |
children |
line wrap: on
line source
% unfolder - arrow to generate sequence by unfolding state % % unfolder :: % (S -> B, S) ~'function to state to output and next state', % S ~'initial state' % -> arrow({},{B},S) ~'arrow from A to B with state of type S'. function o=unfolder(fn,s0) s.fn=fn; s.s0=s0; o=class(s,'unfolder',arrow(0,1)); end