[Master Index]
[Index for export/lyngby]
lyngby_fir_masscent
(export/lyngby/lyngby_fir_masscent.m)
Function Synopsis
M = lyngby_fir_masscent(result_fir, arg1);
Help text
lyngby_masscenter - Returns the masscenter of the FIR kernel
function M = lyngby_fir_masscent(result_fir, type);
function M = lyngby_fir_masscent(result_fir);
Input: result_fir Result from the FIR analysis
type [ {none} | absabs | abs | discard ]
Type of mass center
Output: M mass center
The FIR coefficients can be negative. The 'type' controls
how these negative coefficients should be treated.
M = sum(|n*h(n)|) / sum(|h(n)|)
The 'absabs' is the upper formula.
With 'abs' the nominator || function is discarded.
With 'none' no absolute value is taken. This is the default
With 'discard' the negative numbers are put to zero.
The weights are index from 0.
See also LYNGBY, LYNGBY_FIR_MAIN.
$Id: lyngby_fir_masscent.m,v 1.2 2004/06/01 12:25:55 fnielsen Exp $
Produced by mat2html on Wed Jul 29 15:43:40 2009
Cross-Directory links are: OFF