\hypertarget{group__Filter__design}{}\section{Filter Design}
\label{group__Filter__design}\index{Filter Design@{Filter Design}}


Filter design.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
Real\+Sequence1 \hyperlink{group__Filter__design_gaab880db5d7d30b971c5faa705758ca76}{S\+P\+L\+::lowpass\+Filter} (double cutoff\+Freq, double trans\+Width, double max\+Passband\+Ripple=0.\+1, double min\+Stopband\+Atten=20.\+0)
\begin{DoxyCompactList}\small\item\em Design a zero-\/phase F\+I\+R lowpass filter. \end{DoxyCompactList}\item 
Real\+Sequence1 \hyperlink{group__Filter__design_ga22cf54591e73dfc72b3386ebdb3f9ed7}{S\+P\+L\+::highpass\+Filter} (double cutoff\+Freq, double trans\+Width, double max\+Passband\+Ripple=0.\+1, double min\+Stopband\+Atten=20.\+0)
\begin{DoxyCompactList}\small\item\em Design a zero-\/phase F\+I\+R highpass filter. \end{DoxyCompactList}\item 
Real\+Sequence1 \hyperlink{group__Filter__design_ga6402cb495afbdabd057d0553f833a95a}{S\+P\+L\+::bandpass\+Filter} (double cutoff\+Freq0, double cutoff\+Freq1, double trans\+Width0, double trans\+Width1, double max\+Passband\+Ripple=0.\+1, double min\+Stopband\+Atten=20.\+0)
\begin{DoxyCompactList}\small\item\em Design a zero-\/phase F\+I\+R bandpass filter. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Filter design. 



\subsection{Function Documentation}
\hypertarget{group__Filter__design_ga6402cb495afbdabd057d0553f833a95a}{}\index{Filter Design@{Filter Design}!bandpass\+Filter@{bandpass\+Filter}}
\index{bandpass\+Filter@{bandpass\+Filter}!Filter Design@{Filter Design}}
\subsubsection[{bandpass\+Filter}]{\setlength{\rightskip}{0pt plus 5cm}Real\+Sequence1 S\+P\+L\+::bandpass\+Filter (
\begin{DoxyParamCaption}
\item[{double}]{cutoff\+Freq0, }
\item[{double}]{cutoff\+Freq1, }
\item[{double}]{trans\+Width0, }
\item[{double}]{trans\+Width1, }
\item[{double}]{max\+Passband\+Ripple = {\ttfamily 0.1}, }
\item[{double}]{min\+Stopband\+Atten = {\ttfamily 20.0}}
\end{DoxyParamCaption}
)}\label{group__Filter__design_ga6402cb495afbdabd057d0553f833a95a}


Design a zero-\/phase F\+I\+R bandpass filter. 

Effects\+: A linear-\/phase F\+I\+R filter with zero group delay is designed with the (normalized) lower cutoff frequency cutoff\+Freq0, (normalized) upper cutoff frequency cutoff\+Freq1, (normalized) lower transition width trans\+Width0, (normalized) upper transition width trans\+Width1, maximum peak-\/to-\/peak passband ripple max\+Passband\+Ripple (in d\+B), and minimum stopband attenuation min\+Stopband\+Atten (in d\+B). Note\+: Frequencies are normalized such that a value of one corresponds to the Nyquist frequency.

The cutoff frequencies cannot be 0 or 1. In other words, this function cannot be used to design a lowpass or highpass filter.

Returns\+: The impulse response of the designed filter is returned. \hypertarget{group__Filter__design_ga22cf54591e73dfc72b3386ebdb3f9ed7}{}\index{Filter Design@{Filter Design}!highpass\+Filter@{highpass\+Filter}}
\index{highpass\+Filter@{highpass\+Filter}!Filter Design@{Filter Design}}
\subsubsection[{highpass\+Filter}]{\setlength{\rightskip}{0pt plus 5cm}Real\+Sequence1 S\+P\+L\+::highpass\+Filter (
\begin{DoxyParamCaption}
\item[{double}]{cutoff\+Freq, }
\item[{double}]{trans\+Width, }
\item[{double}]{max\+Passband\+Ripple = {\ttfamily 0.1}, }
\item[{double}]{min\+Stopband\+Atten = {\ttfamily 20.0}}
\end{DoxyParamCaption}
)}\label{group__Filter__design_ga22cf54591e73dfc72b3386ebdb3f9ed7}


Design a zero-\/phase F\+I\+R highpass filter. 

Effects\+: A linear-\/phase F\+I\+R filter with zero group delay is designed with the (normalized) cutoff frequency cutoff\+Freq, (normalized) transition width trans\+Width, maximum peak-\/to-\/peak passband ripple max\+Passband\+Ripple (in d\+B), and minimum stopband attenuation min\+Stopband\+Atten (in d\+B). Note\+: Frequencies are normalized such that a value of one corresponds to the Nyquist frequency.

Returns\+: The impulse response of the designed filter is returned. \hypertarget{group__Filter__design_gaab880db5d7d30b971c5faa705758ca76}{}\index{Filter Design@{Filter Design}!lowpass\+Filter@{lowpass\+Filter}}
\index{lowpass\+Filter@{lowpass\+Filter}!Filter Design@{Filter Design}}
\subsubsection[{lowpass\+Filter}]{\setlength{\rightskip}{0pt plus 5cm}Real\+Sequence1 S\+P\+L\+::lowpass\+Filter (
\begin{DoxyParamCaption}
\item[{double}]{cutoff\+Freq, }
\item[{double}]{trans\+Width, }
\item[{double}]{max\+Passband\+Ripple = {\ttfamily 0.1}, }
\item[{double}]{min\+Stopband\+Atten = {\ttfamily 20.0}}
\end{DoxyParamCaption}
)}\label{group__Filter__design_gaab880db5d7d30b971c5faa705758ca76}


Design a zero-\/phase F\+I\+R lowpass filter. 

Effects\+: A linear-\/phase F\+I\+R filter with zero group delay is designed with the (normalized) cutoff frequency cutoff\+Freq, (normalized) transition width trans\+Width, maximum peak-\/to-\/peak passband ripple max\+Passband\+Ripple (in d\+B), and minimum stopband attenuation min\+Stopband\+Atten (in d\+B). Note\+: Frequencies are normalized such that a value of one corresponds to the Nyquist frequency.

Returns\+: The impulse response of the designed filter is returned. 