PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Function Index
WindowFilter2D
WindowFilter2D[
N
,
{
f
1
,
f
2
,
...
},
{
v
1
,
v
2
,
...
}]
returns a 2D circularly symmetric, linear-phase, bandpass (possibly multiband) FIR filter that is optimal in the mean-squared error sense. {f
1
, f
2
, ...} is a list of cutoff frequencies, such that 0≤f
1
≤f
2
≤...≤0.5, and {v
1
, v
2
, ...} is a list of desired magnitude values for each of the bands.
WindowFilter2D
returns a FIR filter h
t
[n
1
, n
2
] that minimizes the integral squared error between the desired (ideal) frequency response given by H
d
(
1
,
2
) and the DTFT of h
t
[ n
1
, n
2
] given by H
t
(
1
,
2
).
The desired frequency response H
d
(
) is typically specified as piecewise constant with sharp transitions between passbands and stopbands. The corresponding impulse response h
d
[n] is then infinite in extent. It is known that the filter h
t
[n] that minimizes the integral is a truncated copy of h
d
[n].
Truncation may be implemented as a multiplication operation by a finite length sequence called the window
where w[n
1
, n
2
] is the 2D rectangular window sequence defined as
Typically, the rectangular window is replaced by windows with smoother frequency response characteristics.
See also User's Guide
9.4
.
Example
This loads the package.
In[1]:=
Here we design a bandstop filter. Two passbands are defined at 0≤f
p1
≤0.2 and 0.35≤f
p2
≤0.5, while the stopband is defined for the frequency range 0.2≤f
s
≤0.35. The band edge frequencies are therefore at 0.2 and 0.35.
In[2]:=
Here we show an approximation of the magnitude response of the example bandstop filter.
In[3]:=
Out[3]=
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.