Mercurial > hg > ishara
annotate signals/@siglzcat/siglzcat.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 289445d368a7 |
children |
rev | line source |
---|---|
samer@1 | 1 classdef siglzcat < signal |
samer@1 | 2 properties (GetAccess=private, SetAccess=immutable) |
samer@1 | 3 head |
samer@1 | 4 tail |
samer@1 | 5 end |
samer@1 | 6 methods |
samer@1 | 7 function s=siglzcat(head,tail) |
samer@1 | 8 if isnan(channels(head)), error('First signal to siglzcat must have determinate channels'); end |
samer@1 | 9 s.head=head; |
samer@1 | 10 s.tail=tail; |
samer@1 | 11 end |
samer@1 | 12 |
samer@1 | 13 function s=tostring(sig) |
samer@1 | 14 s=sprintf('%s > %s',tostring(sig.head),tostring(sig.tail)); |
samer@1 | 15 end |
samer@1 | 16 |
samer@1 | 17 function c=rate(s), c=rate(s.head); end |
samer@1 | 18 function c=channels(s), c=channels(s.head); end |
samer@1 | 19 end |
samer@1 | 20 end |