Main Content

lagrange

fdesign.fracdelay 仕様オブジェクトからの非整数遅延フィルターの設計

構文

Hd = design(d,'lagrange')
hd = design(d,'lagrange',FilterStructure,structure)

説明

Hd = design(d,'lagrange') は、ラグランジュ法を使用し、d の仕様に基づいて、非整数遅延フィルターを設計します。

hd = design(d,'lagrange',FilterStructure,structure) は、ラグランジュ設計法と hdstructure フィルター構造を指定します。有効なフィルター構造は、非整数遅延構造を記述する fd のみです。

この例では、0.30 サンプルの非整数遅延を使用します。help コマンドと designopts コマンドは、非整数遅延フィルターの設計に関する詳細を提供します。

d=fdesign.fracdelay(.30)
 
d =
 
               Response: 'Fractional Delay'
          Specification: 'N'               
            Description: {'Filter Order'}  
              FracDelay: 0.3               
    NormalizedFrequency: true              
            FilterOrder: 3                 
                                           
designmethods(d)

Design Methods for class fdesign.fracdelay (N):

lagrange

help(d,'lagrange')

DESIGN Design a Lagrange fractional delay filter.
HD = DESIGN(D, 'lagrange') designs a Lagrange filter specified by the
  FDESIGN object D, and returns the DFILT object HD.
 
HD = DESIGN(..., 'FilterStructure', STRUCTURE) returns a filter with the
 structure STRUCTURE.  STRUCTURE is 'farrowfd' by default and can be any of
 the following:

'farrowfd'
'fd'
 
 % Example #1 - Design a linear Lagrange fractional delay filter of 0.2 samples.
 h = fdesign.fracdelay(0.2,'N',2);
 Hd = design(h, 'lagrange', 'FilterStructure', 'farrowfd')
 
 % Example #2 - Design a cubic Lagrange fractional delay filter
 Fs = 8000;      % Sampling frequency of 8kHz
 fdelay = 50e-6; % Fractional delay of 50 microseconds.
 h  = fdesign.fracdelay(fdelay,'N',3,Fs);
 Hd = design(h, 'lagrange', 'FilterStructure', 'farrowfd');

この例では、遅延を 0.2 秒、フィルター次数 N を 2 に設定した線形ラグランジュ非整数遅延フィルターを設計します。

h = fdesign.fracdelay(0.2,'N',2); 
hd = design(h,'lagrange','FilterStructure','farrowfd')

3 に等しいフィルター次数を使用して 3 次ラグランジュ非整数遅延フィルターを設計します。

Fs = 8000;      % Sampling frequency of 8 kHz.
fdelay = 50e-6; % Fractional delay of 50 microseconds.
h  = fdesign.fracdelay(fdelay,'N',3,Fs);
hd = design(h,'lagrange','FilterStructure','farrowfd');

参考文献

Laakso, T. I., V. Välimäki, M. Karjalainen, and Unto K. Laine, “Splitting the Unit Delay - Tools for Fractional Delay Filter Design,” IEEE® Signal Processing Magazine, Vol. 13, No. 1, pp. 30-60, January 1996.

バージョン履歴

R2011a で導入