Programmer Guide/Command Reference/EVAL/optmm: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 7: Line 7:
:;<var>w</var>:The smoothing matrix, containg a two dimensional a smoothing function.
:;<var>w</var>:The smoothing matrix, containg a two dimensional a smoothing function.
;Description:
;Description:
:#<code>nrow(''w'') = 2M+1</code> and <code>nrow(''a'') >> M</code>
:*<code>nrow(''w'') = 2M+1</code> and <code>nrow(''a'') >> M</code>
:#<code>ncol(''w'') = 2N+1</code> and <code>ncol(''w'') = ncol(''a'')</code>
:*<code>ncol(''w'') = 2N+1</code> and <code>ncol(''w'') = ncol(''a'')</code>
:The matrix ''w'' contains the weighting function, with the center ''w''[M,N] and should be symetrical in both dimensions
:*The matrix ''w'' contains the weighting function, with the maximum at ''w''[M,N] and which should be symetrical in both dimensions.
::<code>(''w''[M-i,N-j]=''w''[M-i,N+j]=''w''[M+i,N-j]=''w''[M+i,N+j]; with: i=1..M, j=1..N</code>
::<code>''w''[M-i,N-j]=''w''[M-i,N+j]=''w''[M+i,N-j]=''w''[M+i,N+j]; with: i=1..M, j=1..N</code>
 
:*The smoothed output is computed as follows:
::<math>r[i]=\sum_{j=-M}^M \sum_{k=-N}^N a[i+j,N+k]*w[M+j,N+k]</math>


;Result: The vector ''r'' with the length <code>nrow(''a'')</code>, containing the smooth filter spectrum.
;Result: The vector ''r'' with the length <code>nrow(''a'')</code>, containing the smooth filter spectrum.

Revision as of 14:24, 20 April 2011

Smooth multiplier matrix using a two dimensional convolution. The function optmm</comp> was especially implemented for the script application MulAc.

Usage
optmm(mflag, a, w)
mflag
selects the method used to modify the multiplier matrix; currently only the method mflag=0 is implemented
a
The multiplier matrix. Each row a[i] contains one linear filter spectrum to be applied to a signal.
w
The smoothing matrix, containg a two dimensional a smoothing function.
Description
  • nrow(w) = 2M+1 and nrow(a) >> M
  • ncol(w) = 2N+1 and ncol(w) = ncol(a)
  • The matrix w contains the weighting function, with the maximum at w[M,N] and which should be symetrical in both dimensions.
w[M-i,N-j]=w[M-i,N+j]=w[M+i,N-j]=w[M+i,N+j]; with: i=1..M, j=1..N
  • The smoothed output is computed as follows:
{\displaystyle r[i]=\sum _{j=-M}^{M}\sum _{k=-N}^{N}a[i+j,N+k]*w[M+j,N+k]}
Result
The vector r with the length nrow(a), containing the smooth filter spectrum.
See also
hcomb, cvphase, script application MulAc

<function list>

Navigation menu

Personal tools