comparison m-toolbox/classes/@miir/fromAllpass.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % Construct an miir allpass filter
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % FUNCTION: fromStandard
5 %
6 % DESCRIPTION: Construct an miir allpass filter
7 %
8 % CALL: f = fromAllpass(f, pli)
9 %
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 function f = fromAllpass(f, pli)
12
13 VERSION = '$Id: fromAllpass.m,v 1.5 2011/08/15 11:22:59 hewitson Exp $';
14
15 ii = miir.getInfo('miir', 'Allpass');
16 % Set the method version string in the minfo object
17 ii.setMversion([VERSION '-->' ii.mversion]);
18
19 % Add default values
20 pl = applyDefaults(ii.plists, pli);
21
22 f = mkallpass(f, pl);
23
24 if isempty(pl.find('name'))
25 pl.pset('name', 'allpass');
26 end
27
28 % Add history
29 f.addHistory(ii, pl, [], []);
30
31 % Set object properties
32 f.setObjectProperties(pl);
33
34 end % function f = miirFromStandardType(type, pli, version, algoname)
35
36