annotate 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
rev   line source
samer@42 1 % unfolder - arrow to generate sequence by unfolding state
samer@0 2 %
samer@0 3 % unfolder ::
samer@0 4 % (S -> B, S) ~'function to state to output and next state',
samer@0 5 % S ~'initial state'
samer@0 6 % -> arrow({},{B},S) ~'arrow from A to B with state of type S'.
samer@0 7
samer@0 8 function o=unfolder(fn,s0)
samer@0 9 s.fn=fn; s.s0=s0;
samer@0 10 o=class(s,'unfolder',arrow(0,1));
samer@0 11 end
samer@0 12