The document discusses sampling a signal using an impulse train. It introduces the impulse train as a theoretical concept consisting of a series of narrow spikes that match the original signal at sampling instants. This allows making an "apples-to-apples" comparison between the original analog signal and the sampled signal. The Fourier transform of the impulse train is a train of Dirac delta functions. Sampling a signal is equivalent to multiplying it with the impulse train. The Fourier transform of the sampled signal is equal to the original Fourier transform multiplied by the Fourier transform of the impulse train.
- Obtained the Fast Fourier Transform of signals.
- Designed and Validated Low Pass, High Pass, and Band Pass filters in compliance with the specifications.
- Produced and compared graphs of the results upon processing.
1) The document discusses various pulse modulation techniques including pulse amplitude modulation (PAM), pulse width modulation (PWM), and pulse position modulation (PPM).
2) It provides details on the generation and detection of PAM and PWM signals, explaining the use of sampling, comparators, sawtooth waves, and filters.
3) The document compares different sampling techniques for PAM including natural sampling, flat top sampling, and discusses the need for analog to digital conversion in communication systems.
The document discusses digital filters and their design. It begins with an introduction to filters and their uses in signal processing applications. It then covers linear time-invariant filters and their transfer functions. It discusses the differences between non-recursive (FIR) and recursive (IIR) filters. The document presents various filter structures for implementation, including direct form I and direct form II structures. It also discusses designing FIR and IIR filters as well as issues in their implementation.
Digital filters can remove unwanted noise from signals or extract useful frequency components. They operate by sampling an analog signal, processing the digital values, and converting back to analog. Finite impulse response (FIR) filters use weighted sums of past inputs for outputs and are inherently stable without feedback. Infinite impulse response (IIR) filters use feedback, with outputs and next states determined by inputs and past outputs. Common filters include moving average filters and filters that introduce gain, delay, or differences between signal values. Design involves selecting coefficients for desired frequency responses. Stability depends on pole locations within the unit circle. Digital filters find applications in communications, audio, imaging, and other areas.
This document discusses moving average filters and their properties. It begins by defining the moving average filter equation and explaining that it operates by averaging neighboring points in the input signal. While simple, the moving average filter is optimal for reducing random noise while maintaining a sharp step response. It has poor performance in the frequency domain, however, with a slow roll-off and inability to separate frequencies. Relatives like multiple-pass moving average filters have slightly better frequency response at the cost of increased computation. The document provides examples and equations to illustrate the properties of moving average filters.
This document provides an overview of digital filters and focuses on finite impulse response (FIR) filters. It defines digital filtering and compares it to analog filtering. It describes different types of digital filters including FIR filters and explains how to design, implement and characterize FIR filters. Key aspects of FIR filters are that they have a finite impulse response, linear phase, and are always stable. Design techniques like windowing methods and Parks-McClellan optimization are covered.
- Digital signal processing systems convert analog signals to digital signals for processing. They consist of anti-aliasing filters, analog-to-digital converters (ADCs), digital signal processors, digital-to-analog converters (DACs), and reconstruction filters.
- ADCs sample analog signals and convert them to discrete digital values. Sampling must occur at least twice the maximum frequency of the analog signal, as per the Nyquist-Shannon sampling theorem, to avoid aliasing.
- Aliasing occurs when the sampling rate is too low, causing high frequency signals to appear as lower frequencies. Anti-aliasing filters are used before sampling to remove frequencies above half the sampling rate.
1. Fourier series can be used to analyze circuits involving sinusoidal steady state analysis by representing sinusoidal voltages and currents as phasors. This allows circuit analysis using complex impedances.
2. Applications of Fourier series include power spectrum analyzers, which use the Fourier transform to break down complex signals into their frequency components, audio equalizers, which filter sound waves in specific frequencies, and ECG machines, which model the periodic heartbeats using Fourier series.
- Obtained the Fast Fourier Transform of signals.
- Designed and Validated Low Pass, High Pass, and Band Pass filters in compliance with the specifications.
- Produced and compared graphs of the results upon processing.
1) The document discusses various pulse modulation techniques including pulse amplitude modulation (PAM), pulse width modulation (PWM), and pulse position modulation (PPM).
2) It provides details on the generation and detection of PAM and PWM signals, explaining the use of sampling, comparators, sawtooth waves, and filters.
3) The document compares different sampling techniques for PAM including natural sampling, flat top sampling, and discusses the need for analog to digital conversion in communication systems.
The document discusses digital filters and their design. It begins with an introduction to filters and their uses in signal processing applications. It then covers linear time-invariant filters and their transfer functions. It discusses the differences between non-recursive (FIR) and recursive (IIR) filters. The document presents various filter structures for implementation, including direct form I and direct form II structures. It also discusses designing FIR and IIR filters as well as issues in their implementation.
Digital filters can remove unwanted noise from signals or extract useful frequency components. They operate by sampling an analog signal, processing the digital values, and converting back to analog. Finite impulse response (FIR) filters use weighted sums of past inputs for outputs and are inherently stable without feedback. Infinite impulse response (IIR) filters use feedback, with outputs and next states determined by inputs and past outputs. Common filters include moving average filters and filters that introduce gain, delay, or differences between signal values. Design involves selecting coefficients for desired frequency responses. Stability depends on pole locations within the unit circle. Digital filters find applications in communications, audio, imaging, and other areas.
This document discusses moving average filters and their properties. It begins by defining the moving average filter equation and explaining that it operates by averaging neighboring points in the input signal. While simple, the moving average filter is optimal for reducing random noise while maintaining a sharp step response. It has poor performance in the frequency domain, however, with a slow roll-off and inability to separate frequencies. Relatives like multiple-pass moving average filters have slightly better frequency response at the cost of increased computation. The document provides examples and equations to illustrate the properties of moving average filters.
This document provides an overview of digital filters and focuses on finite impulse response (FIR) filters. It defines digital filtering and compares it to analog filtering. It describes different types of digital filters including FIR filters and explains how to design, implement and characterize FIR filters. Key aspects of FIR filters are that they have a finite impulse response, linear phase, and are always stable. Design techniques like windowing methods and Parks-McClellan optimization are covered.
- Digital signal processing systems convert analog signals to digital signals for processing. They consist of anti-aliasing filters, analog-to-digital converters (ADCs), digital signal processors, digital-to-analog converters (DACs), and reconstruction filters.
- ADCs sample analog signals and convert them to discrete digital values. Sampling must occur at least twice the maximum frequency of the analog signal, as per the Nyquist-Shannon sampling theorem, to avoid aliasing.
- Aliasing occurs when the sampling rate is too low, causing high frequency signals to appear as lower frequencies. Anti-aliasing filters are used before sampling to remove frequencies above half the sampling rate.
1. Fourier series can be used to analyze circuits involving sinusoidal steady state analysis by representing sinusoidal voltages and currents as phasors. This allows circuit analysis using complex impedances.
2. Applications of Fourier series include power spectrum analyzers, which use the Fourier transform to break down complex signals into their frequency components, audio equalizers, which filter sound waves in specific frequencies, and ECG machines, which model the periodic heartbeats using Fourier series.
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignAmr E. Mohamed
ย
The document discusses the design of discrete-time IIR filters from continuous-time filter specifications. It covers common IIR filter design techniques including the impulse invariance method, matched z-transform method, and bilinear transformation method. An example applies the bilinear transformation to design a first-order low-pass digital filter from a continuous analog prototype. Filter design procedures and steps are provided.
Vibration signals can be filtered using various filter types to isolate different frequency bands. Active filters use op-amps and transistors while passive filters use inductors, capacitors, and resistors. Filter types include low-pass, high-pass, band-pass, and band-stop filters based on the frequencies allowed. Filter designs like Butterworth, Chebyshev, and elliptic provide different frequency responses. Spectrum analysis separates a signal into its frequency components using filters. Fast Fourier transforms allow real-time analysis by rapidly converting time signals to frequency spectra.
This digital method is built using chirp z-transform(CZT) and provides 100% alias-free bandwidth such as using ideal LPF. This noble method is efficient for economic and practical considerations.
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given retGive Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given retGive Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given retGive Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all stude
Signal, Sampling and signal quantizationSamS270368
ย
Signal sampling is the process of converting a continuous-time signal into a discrete-time signal by capturing its amplitude at regularly spaced intervals of time. This is typically done using an analog-to-digital converter (ADC). The rate at which samples are taken is called the sampling frequency, often denoted as Fs, and is measured in hertz (Hz). The Nyquist-Shannon sampling theorem states that to accurately reconstruct a signal from its samples, the sampling frequency must be at least twice the highest frequency component present in the signal (the Nyquist frequency). Sampling at a frequency below the Nyquist frequency can result in aliasing, where higher frequency components are incorrectly interpreted as lower frequency ones.
This document discusses digital-to-analog conversion (DAC) and analog-to-digital conversion (ADC). It covers key topics such as signal quantization, sampling theory, aliasing, and reconstruction of signals from sampled data. Proper sampling requires a sampling frequency of at least twice the highest frequency component of the signal to avoid aliasing. DACs reconstruct the analog signal from its digital representation, but introduce a zeroth-order hold effect that can be corrected through filtering. Understanding ADC and DAC, including their limitations and filter requirements, is important for digital signal processing applications.
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsAmr E. Mohamed
ย
The document discusses sampling of continuous-time signals. It defines different types of signals and sampling methods. Ideal sampling involves multiplying the signal by a train of impulse functions to select sample values at regular intervals. For practical sampling, a train of rectangular pulses is used to approximate ideal sampling. Flat-top sampling is achieved by convolving the ideally sampled signal with a rectangular pulse, resulting in samples held at a constant height for the sample period. The Nyquist sampling theorem states that a signal must be sampled at least twice its maximum frequency to avoid aliasing when reconstructing the original signal from samples. An anti-aliasing filter can be used before sampling to prevent aliasing from high frequencies above half the sampling rate.
The document discusses digital communication systems and their advantages over analog communication. It describes how analog signals are digitized using sampling and quantization. Sampling must occur at least twice the maximum frequency of the signal to avoid aliasing, as stated by the Nyquist sampling theorem. Quantization converts continuous amplitudes to discrete levels, causing quantization error and noise. Digital communication provides benefits like lower distortion and easier signal processing. Companding is discussed as a technique used in pulse code modulation to improve signal-to-noise ratio by compressing higher amplitudes before transmission.
This document discusses the process of sampling in signal processing. It defines key terms like analog and digital signals, sampling frequency, and samples. It explains how sampling works by taking regular measurements of a continuous signal's amplitude over time. This converts it into a discrete-time signal. It discusses applications of sampling like audio sampling, where signals are typically sampled above 20 kHz. It also discusses video sampling rates and speech sampling rates. The document contains examples and diagrams to illustrate these concepts.
This document provides instructions for an experiment using MATLAB's signal processing toolbox (sptool) to design filters and apply them to audio signals. It begins with an overview of filters and their parameters. It then describes using sptool to design a bandpass filter to add a "phone effect" to a speech signal. Next, it demonstrates using a lowpass filter to remove high frequency noise from a noisy signal. Finally, it discusses exporting filter designs from sptool to MATLAB for further analysis and use.
Lock-in amplifiers use phase-sensitive detection to isolate signals at a specific reference frequency, even when obscured by noise much larger than the signal. They multiply the input signal with an internal reference signal that is phase-locked to an external reference, extracting the component that matches the reference frequency as a DC output. This allows accurate measurement of nanovolt-level signals. Digital lock-ins implement phase-sensitive detection through digital multiplication of digitized input and reference signals, avoiding issues like harmonic detection that can occur in analog implementations.
A filter is an electrical network that transmits signals within a specified frequency range called the pass band, and suppresses signals in the stop band, separated by the cut-off frequency. Digital filters are used to eliminate noise and extract signals of interest, implemented using software rather than RLC components. Digital filters are FIR (finite impulse response) or IIR (infinite impulse response) depending on the number of sample points used. An ideal filter would transmit signals in the pass band without attenuation and completely suppress the stop band, but ideal filters cannot be realized. IIR filter design first develops an analog IIR filter, then converts it to digital using methods like impulse invariant, approximation of derivatives, or bilinear transformation.
ECG Signal Denoising using Digital Filter and Adaptive FilterIRJET Journal
ย
1. The document discusses methods for denoising electrocardiogram (ECG) signals, including digital filters and adaptive filters.
2. It evaluates the performance of Savitzky-Golay filters, band pass filters, and adaptive noise cancellation techniques for removing noise from ECG signals and improving the signal-to-noise ratio.
3. The key filters discussed are Savitzky-Golay filters, Tompkins filters, Butterworth band pass filters, and least mean square adaptive filters, analyzing their ability to reduce noise like powerline interference, baseline drift, and motion artifacts from ECG data.
Digital signal processing (DSP) involves converting analog signals to digital signals and manipulating the digital signals using software algorithms. DSP systems use analog-to-digital conversion to convert analog signals to digital signals represented as sequences of numbers. They then process the digital signals using a digital signal processor and convert them back to analog signals using digital-to-analog conversion. Key techniques in DSP include decomposing signals into simple components, processing the components individually, and then combining the results.
The document discusses the basics of signal processing in polysomnography (PSG) systems from the physiological signals being recorded to their digital representation. It covers topics like: where EEG signals originate from neurons, the analog components like electrodes, amplifiers and filters used to process analog signals, and the digital components like sampling rate and resolution that determine the digital waveform display. The key stages of signal processing from the patient to the PSG tracing are also outlined.
This document summarizes a presentation on multirate digital signal processing. Multirate systems involve processing signals at different sampling rates, using operations like decimation to lower the sampling rate and interpolation to increase it. Decimation involves downsampling by discarding samples, while interpolation involves upsampling by inserting zeros. These operations are used for applications like sampling rate conversion, audio/video encoding, and communications systems. Key aspects of multirate signal processing discussed include anti-alias filtering, sampling rate conversion using cascaded decimation and interpolation, and choosing optimal filter designs.
Electrocardiography is a medical topic that has piqued engineers' curiosity. One of the most essential signals observed in heart patients is the electrocardiogram (ECG). The electrocardiogram, or ECG, is an extremely valuable medical device. The objective of an ECG is to assist clinicians in quickly diagnosing human or animal heart activity and detecting aberrant heart activities. The heart's job is to contract rhythmically, pump blood to the lungs for oxygenation, and then return this oxygenated blood to the rest of the body. The spread of electrical signals created by the heart pacemaker, the Sinoatrial (SA) node, maintains and signals this precise rhythm. Detecting such electrical activity in the heart can aid in the detection of a variety of cardiac problems
This document provides a tutorial on digitizing analogue signals. It discusses the key principles of analogue-to-digital conversion including sampling rate, aliasing, anti-alias filtering, and quantization. The main points are:
1) The sampling rate must be greater than twice the maximum frequency present in the signal to avoid aliasing. Aliasing occurs when the sampling rate is too low and different frequencies become ambiguous.
2) An anti-alias filter should be applied before sampling to limit the signal to below half the sampling rate and prevent aliasing.
3) The digitized signal results in discrete amplitude levels due to quantization from the finite number of levels in the analog-to-digital converter. Higher
This document discusses infinite impulse response (IIR) filters. It begins by introducing digital filters and their basic block diagram. There are two main types of digital filters: finite impulse response (FIR) filters and IIR filters. FIR filters have a finite duration impulse response, while IIR filters have an infinite duration impulse response and are recursive. The document then discusses different filter types (low pass, high pass, etc.), ideal filter characteristics, and common structures for implementing FIR and IIR filters like direct form and cascade form structures.
The document discusses techniques for designing discrete-time infinite impulse response (IIR) filters from continuous-time filter specifications. It covers the impulse invariance method, matched z-transform method, and bilinear transformation method. The impulse invariance method samples the continuous-time impulse response to obtain the discrete-time impulse response. The bilinear transformation maps the entire s-plane to the unit circle in the z-plane to avoid aliasing. Examples are provided to illustrate the design process using each method.
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignAmr E. Mohamed
ย
The document discusses the design of discrete-time IIR filters from continuous-time filter specifications. It covers common IIR filter design techniques including the impulse invariance method, matched z-transform method, and bilinear transformation method. An example applies the bilinear transformation to design a first-order low-pass digital filter from a continuous analog prototype. Filter design procedures and steps are provided.
Vibration signals can be filtered using various filter types to isolate different frequency bands. Active filters use op-amps and transistors while passive filters use inductors, capacitors, and resistors. Filter types include low-pass, high-pass, band-pass, and band-stop filters based on the frequencies allowed. Filter designs like Butterworth, Chebyshev, and elliptic provide different frequency responses. Spectrum analysis separates a signal into its frequency components using filters. Fast Fourier transforms allow real-time analysis by rapidly converting time signals to frequency spectra.
This digital method is built using chirp z-transform(CZT) and provides 100% alias-free bandwidth such as using ideal LPF. This noble method is efficient for economic and practical considerations.
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given retGive Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given retGive Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given retGive Me the proper retort for Use full
It can be very essential for all students
Its honorable request for given Give Me the proper retort for Use full
It can be very essential for all stude
Signal, Sampling and signal quantizationSamS270368
ย
Signal sampling is the process of converting a continuous-time signal into a discrete-time signal by capturing its amplitude at regularly spaced intervals of time. This is typically done using an analog-to-digital converter (ADC). The rate at which samples are taken is called the sampling frequency, often denoted as Fs, and is measured in hertz (Hz). The Nyquist-Shannon sampling theorem states that to accurately reconstruct a signal from its samples, the sampling frequency must be at least twice the highest frequency component present in the signal (the Nyquist frequency). Sampling at a frequency below the Nyquist frequency can result in aliasing, where higher frequency components are incorrectly interpreted as lower frequency ones.
This document discusses digital-to-analog conversion (DAC) and analog-to-digital conversion (ADC). It covers key topics such as signal quantization, sampling theory, aliasing, and reconstruction of signals from sampled data. Proper sampling requires a sampling frequency of at least twice the highest frequency component of the signal to avoid aliasing. DACs reconstruct the analog signal from its digital representation, but introduce a zeroth-order hold effect that can be corrected through filtering. Understanding ADC and DAC, including their limitations and filter requirements, is important for digital signal processing applications.
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsAmr E. Mohamed
ย
The document discusses sampling of continuous-time signals. It defines different types of signals and sampling methods. Ideal sampling involves multiplying the signal by a train of impulse functions to select sample values at regular intervals. For practical sampling, a train of rectangular pulses is used to approximate ideal sampling. Flat-top sampling is achieved by convolving the ideally sampled signal with a rectangular pulse, resulting in samples held at a constant height for the sample period. The Nyquist sampling theorem states that a signal must be sampled at least twice its maximum frequency to avoid aliasing when reconstructing the original signal from samples. An anti-aliasing filter can be used before sampling to prevent aliasing from high frequencies above half the sampling rate.
The document discusses digital communication systems and their advantages over analog communication. It describes how analog signals are digitized using sampling and quantization. Sampling must occur at least twice the maximum frequency of the signal to avoid aliasing, as stated by the Nyquist sampling theorem. Quantization converts continuous amplitudes to discrete levels, causing quantization error and noise. Digital communication provides benefits like lower distortion and easier signal processing. Companding is discussed as a technique used in pulse code modulation to improve signal-to-noise ratio by compressing higher amplitudes before transmission.
This document discusses the process of sampling in signal processing. It defines key terms like analog and digital signals, sampling frequency, and samples. It explains how sampling works by taking regular measurements of a continuous signal's amplitude over time. This converts it into a discrete-time signal. It discusses applications of sampling like audio sampling, where signals are typically sampled above 20 kHz. It also discusses video sampling rates and speech sampling rates. The document contains examples and diagrams to illustrate these concepts.
This document provides instructions for an experiment using MATLAB's signal processing toolbox (sptool) to design filters and apply them to audio signals. It begins with an overview of filters and their parameters. It then describes using sptool to design a bandpass filter to add a "phone effect" to a speech signal. Next, it demonstrates using a lowpass filter to remove high frequency noise from a noisy signal. Finally, it discusses exporting filter designs from sptool to MATLAB for further analysis and use.
Lock-in amplifiers use phase-sensitive detection to isolate signals at a specific reference frequency, even when obscured by noise much larger than the signal. They multiply the input signal with an internal reference signal that is phase-locked to an external reference, extracting the component that matches the reference frequency as a DC output. This allows accurate measurement of nanovolt-level signals. Digital lock-ins implement phase-sensitive detection through digital multiplication of digitized input and reference signals, avoiding issues like harmonic detection that can occur in analog implementations.
A filter is an electrical network that transmits signals within a specified frequency range called the pass band, and suppresses signals in the stop band, separated by the cut-off frequency. Digital filters are used to eliminate noise and extract signals of interest, implemented using software rather than RLC components. Digital filters are FIR (finite impulse response) or IIR (infinite impulse response) depending on the number of sample points used. An ideal filter would transmit signals in the pass band without attenuation and completely suppress the stop band, but ideal filters cannot be realized. IIR filter design first develops an analog IIR filter, then converts it to digital using methods like impulse invariant, approximation of derivatives, or bilinear transformation.
ECG Signal Denoising using Digital Filter and Adaptive FilterIRJET Journal
ย
1. The document discusses methods for denoising electrocardiogram (ECG) signals, including digital filters and adaptive filters.
2. It evaluates the performance of Savitzky-Golay filters, band pass filters, and adaptive noise cancellation techniques for removing noise from ECG signals and improving the signal-to-noise ratio.
3. The key filters discussed are Savitzky-Golay filters, Tompkins filters, Butterworth band pass filters, and least mean square adaptive filters, analyzing their ability to reduce noise like powerline interference, baseline drift, and motion artifacts from ECG data.
Digital signal processing (DSP) involves converting analog signals to digital signals and manipulating the digital signals using software algorithms. DSP systems use analog-to-digital conversion to convert analog signals to digital signals represented as sequences of numbers. They then process the digital signals using a digital signal processor and convert them back to analog signals using digital-to-analog conversion. Key techniques in DSP include decomposing signals into simple components, processing the components individually, and then combining the results.
The document discusses the basics of signal processing in polysomnography (PSG) systems from the physiological signals being recorded to their digital representation. It covers topics like: where EEG signals originate from neurons, the analog components like electrodes, amplifiers and filters used to process analog signals, and the digital components like sampling rate and resolution that determine the digital waveform display. The key stages of signal processing from the patient to the PSG tracing are also outlined.
This document summarizes a presentation on multirate digital signal processing. Multirate systems involve processing signals at different sampling rates, using operations like decimation to lower the sampling rate and interpolation to increase it. Decimation involves downsampling by discarding samples, while interpolation involves upsampling by inserting zeros. These operations are used for applications like sampling rate conversion, audio/video encoding, and communications systems. Key aspects of multirate signal processing discussed include anti-alias filtering, sampling rate conversion using cascaded decimation and interpolation, and choosing optimal filter designs.
Electrocardiography is a medical topic that has piqued engineers' curiosity. One of the most essential signals observed in heart patients is the electrocardiogram (ECG). The electrocardiogram, or ECG, is an extremely valuable medical device. The objective of an ECG is to assist clinicians in quickly diagnosing human or animal heart activity and detecting aberrant heart activities. The heart's job is to contract rhythmically, pump blood to the lungs for oxygenation, and then return this oxygenated blood to the rest of the body. The spread of electrical signals created by the heart pacemaker, the Sinoatrial (SA) node, maintains and signals this precise rhythm. Detecting such electrical activity in the heart can aid in the detection of a variety of cardiac problems
This document provides a tutorial on digitizing analogue signals. It discusses the key principles of analogue-to-digital conversion including sampling rate, aliasing, anti-alias filtering, and quantization. The main points are:
1) The sampling rate must be greater than twice the maximum frequency present in the signal to avoid aliasing. Aliasing occurs when the sampling rate is too low and different frequencies become ambiguous.
2) An anti-alias filter should be applied before sampling to limit the signal to below half the sampling rate and prevent aliasing.
3) The digitized signal results in discrete amplitude levels due to quantization from the finite number of levels in the analog-to-digital converter. Higher
This document discusses infinite impulse response (IIR) filters. It begins by introducing digital filters and their basic block diagram. There are two main types of digital filters: finite impulse response (FIR) filters and IIR filters. FIR filters have a finite duration impulse response, while IIR filters have an infinite duration impulse response and are recursive. The document then discusses different filter types (low pass, high pass, etc.), ideal filter characteristics, and common structures for implementing FIR and IIR filters like direct form and cascade form structures.
The document discusses techniques for designing discrete-time infinite impulse response (IIR) filters from continuous-time filter specifications. It covers the impulse invariance method, matched z-transform method, and bilinear transformation method. The impulse invariance method samples the continuous-time impulse response to obtain the discrete-time impulse response. The bilinear transformation maps the entire s-plane to the unit circle in the z-plane to avoid aliasing. Examples are provided to illustrate the design process using each method.
Null Bangalore | Pentesters Approach to AWS IAMDivyanshu
ย
#Abstract:
- Learn more about the real-world methods for auditing AWS IAM (Identity and Access Management) as a pentester. So let us proceed with a brief discussion of IAM as well as some typical misconfigurations and their potential exploits in order to reinforce the understanding of IAM security best practices.
- Gain actionable insights into AWS IAM policies and roles, using hands on approach.
#Prerequisites:
- Basic understanding of AWS services and architecture
- Familiarity with cloud security concepts
- Experience using the AWS Management Console or AWS CLI.
- For hands on lab create account on [killercoda.com](https://killercoda.com/cloudsecurity-scenario/)
# Scenario Covered:
- Basics of IAM in AWS
- Implementing IAM Policies with Least Privilege to Manage S3 Bucket
- Objective: Create an S3 bucket with least privilege IAM policy and validate access.
- Steps:
- Create S3 bucket.
- Attach least privilege policy to IAM user.
- Validate access.
- Exploiting IAM PassRole Misconfiguration
-Allows a user to pass a specific IAM role to an AWS service (ec2), typically used for service access delegation. Then exploit PassRole Misconfiguration granting unauthorized access to sensitive resources.
- Objective: Demonstrate how a PassRole misconfiguration can grant unauthorized access.
- Steps:
- Allow user to pass IAM role to EC2.
- Exploit misconfiguration for unauthorized access.
- Access sensitive resources.
- Exploiting IAM AssumeRole Misconfiguration with Overly Permissive Role
- An overly permissive IAM role configuration can lead to privilege escalation by creating a role with administrative privileges and allow a user to assume this role.
- Objective: Show how overly permissive IAM roles can lead to privilege escalation.
- Steps:
- Create role with administrative privileges.
- Allow user to assume the role.
- Perform administrative actions.
- Differentiation between PassRole vs AssumeRole
Try at [killercoda.com](https://killercoda.com/cloudsecurity-scenario/)
Software Engineering and Project Management - Introduction, Modeling Concepts...Prakhyath Rai
ย
Introduction, Modeling Concepts and Class Modeling: What is Object orientation? What is OO development? OO Themes; Evidence for usefulness of OO development; OO modeling history. Modeling
as Design technique: Modeling, abstraction, The Three models. Class Modeling: Object and Class Concept, Link and associations concepts, Generalization and Inheritance, A sample class model, Navigation of class models, and UML diagrams
Building the Analysis Models: Requirement Analysis, Analysis Model Approaches, Data modeling Concepts, Object Oriented Analysis, Scenario-Based Modeling, Flow-Oriented Modeling, class Based Modeling, Creating a Behavioral Model.
Embedded machine learning-based road conditions and driving behavior monitoringIJECEIAES
ย
Car accident rates have increased in recent years, resulting in losses in human lives, properties, and other financial costs. An embedded machine learning-based system is developed to address this critical issue. The system can monitor road conditions, detect driving patterns, and identify aggressive driving behaviors. The system is based on neural networks trained on a comprehensive dataset of driving events, driving styles, and road conditions. The system effectively detects potential risks and helps mitigate the frequency and impact of accidents. The primary goal is to ensure the safety of drivers and vehicles. Collecting data involved gathering information on three key road events: normal street and normal drive, speed bumps, circular yellow speed bumps, and three aggressive driving actions: sudden start, sudden stop, and sudden entry. The gathered data is processed and analyzed using a machine learning system designed for limited power and memory devices. The developed system resulted in 91.9% accuracy, 93.6% precision, and 92% recall. The achieved inference time on an Arduino Nano 33 BLE Sense with a 32-bit CPU running at 64 MHz is 34 ms and requires 2.6 kB peak RAM and 139.9 kB program flash memory, making it suitable for resource-constrained embedded systems.
Comparative analysis between traditional aquaponics and reconstructed aquapon...bijceesjournal
ย
The aquaponic system of planting is a method that does not require soil usage. It is a method that only needs water, fish, lava rocks (a substitute for soil), and plants. Aquaponic systems are sustainable and environmentally friendly. Its use not only helps to plant in small spaces but also helps reduce artificial chemical use and minimizes excess water use, as aquaponics consumes 90% less water than soil-based gardening. The study applied a descriptive and experimental design to assess and compare conventional and reconstructed aquaponic methods for reproducing tomatoes. The researchers created an observation checklist to determine the significant factors of the study. The study aims to determine the significant difference between traditional aquaponics and reconstructed aquaponics systems propagating tomatoes in terms of height, weight, girth, and number of fruits. The reconstructed aquaponics systemโs higher growth yield results in a much more nourished crop than the traditional aquaponics system. It is superior in its number of fruits, height, weight, and girth measurement. Moreover, the reconstructed aquaponics system is proven to eliminate all the hindrances present in the traditional aquaponics system, which are overcrowding of fish, algae growth, pest problems, contaminated water, and dead fish.
Advanced control scheme of doubly fed induction generator for wind turbine us...IJECEIAES
ย
This paper describes a speed control device for generating electrical energy on an electricity network based on the doubly fed induction generator (DFIG) used for wind power conversion systems. At first, a double-fed induction generator model was constructed. A control law is formulated to govern the flow of energy between the stator of a DFIG and the energy network using three types of controllers: proportional integral (PI), sliding mode controller (SMC) and second order sliding mode controller (SOSMC). Their different results in terms of power reference tracking, reaction to unexpected speed fluctuations, sensitivity to perturbations, and resilience against machine parameter alterations are compared. MATLAB/Simulink was used to conduct the simulations for the preceding study. Multiple simulations have shown very satisfying results, and the investigations demonstrate the efficacy and power-enhancing capabilities of the suggested control system.
An improved modulation technique suitable for a three level flying capacitor ...IJECEIAES
ย
This research paper introduces an innovative modulation technique for controlling a 3-level flying capacitor multilevel inverter (FCMLI), aiming to streamline the modulation process in contrast to conventional methods. The proposed
simplified modulation technique paves the way for more straightforward and
efficient control of multilevel inverters, enabling their widespread adoption and
integration into modern power electronic systems. Through the amalgamation of
sinusoidal pulse width modulation (SPWM) with a high-frequency square wave
pulse, this controlling technique attains energy equilibrium across the coupling
capacitor. The modulation scheme incorporates a simplified switching pattern
and a decreased count of voltage references, thereby simplifying the control
algorithm.
2. Sampling a signal
using an impulse train
Our overall goal is to understand what happens to the
information when a signal is converted from a continuous
to a discrete form. The problem is, these are very different
things; one is a continuous waveform while the other is an
array of numbers. This "apples-to-oranges" comparison
makes the analysis very difficult. The solution is to
introduce a theoretical concept called the impulse train.
The impulse train is a continuous signal consisting of a
series of narrow spikes (impulses) that match the original
signal at the sampling instants. Each impulse is
infinitesimally narrow.
Between these sampling times the value of the waveform
is zero. Keep in mind that the impulse train is a
theoretical concept, not a waveform that can exist in an
electronic circuit. Since both the original analog signal
and the impulse train are continuous waveforms, we can
make an "apples-apples" comparison between the two.
3. Impulse Sampling
Sampling a signal x(t) uniformly at intervals Ts yields
Only information about x(t) at the sample points is retained.
4. The impulse train p(t) is
called the sampling function.
p(t) is periodic with
fundamental period Ts
(sampling period)
fs = 1/Ts and ฯs = 2ฯ/Ts are
called the sampling
frequency
5. ๐ฅ๐ฟ(๐ก) =
๐=โโ
โ
๐ฅ(๐๐ ) ๐ฟ(๐ก โ ๐๐ )
Fourier Transform
(frequency response)
Sampling a signal using a impulse train
๐ ๐ก =
๐=โโ
โ
๐ถ๐๐
๐2๐๐๐ก
๐
๐ถ๐ =
1
๐
๐
๐(๐ก)๐
โ๐2๐๐๐ก
๐ ๐๐ก
Fourier exponential series
Cn Fourier coefficients
0 T
x(t) p(t)
t
7T
-T
-8T
x(t)
t
0 T
p(t)
-8T
Fourier Series of p(t)
๐ถ๐ =
1
๐ โ
๐
2
๐
2
๐=โโ
โ
๐ฟ ๐ก โ ๐๐ ๐
โ๐2๐๐๐ก
๐ ๐๐ก =
1
๐
๐ ๐ก =
๐=โโ
โ
๐ฟ ๐ก โ ๐๐ =
1
๐
๐=โโ
โ
๐
๐2๐๐๐ก
๐ (๐น๐๐ข๐๐๐๐ ๐ ๐๐๐๐๐ )
7. we defined the convolution integral as,
One of the most central results of Fourier Theory is the convolution theorem (also called
the Wiener-Khitchine theorem.
where,
Convolution Integral
f ๏ g ๏ฝ f (x)g(x'๏ญx)dx
๏ญ๏ฅ
๏ฅ
๏ฒ
๏ f ๏ g
๏ป ๏ฝ๏ฝ F(k)๏G(k) f (x) ๏ F(k)
g(x) ๏ G(k)
10. Fourier Transform of the sampled signal using Impulse Train
๐ญ๐ป ๐๐น ๐ =
๐
๐ป
๐=โโ
โ
๐ฟ(๐ โ ๐๐๐)
Conceptual Diagram of the relationship
Each shifted an integer multiply of ฯ0
Scale factor
Infinite collection of
shifted version of X(ฯ)
Here T is the periodic
time of the impulse
train
ฯ0 = ฯs = 2ฯ/T = 2ฯ f0
11. Aliasing from a different point of view
Consider an analogue signal with a certain bandwidth
12. When sampled, harmonics appear in the spectrum.
This results in duplication of the original spectrum
Original signal can be reconstructed by using a low pass filter
Aliasing from a different point of view
13. If the sampling rate is not sufficient, the duplicated frequency bands
overlap.
This makes it impossible to reconstruct the original signal using a low
pass filter
Aliasing from a different point of view
14. To remove signals with frequencies above the Nyquist frequency, a
low pass filter must be used before digitizing. Such a filter is
called an Antialiasing Filter.
Avoiding Aliasing
15. However, practical low pass filters do not have sharp cut-off
frequencies. This should be kept in mind, when deciding a sampling
rate for a signal.
Avoiding Aliasing
Ideal Low pass Filter
Realistic Filters:
16. Problem:
What are the suitable sample rates for digitizing
human speech?
music?
What should be the cut-off frequencies of the antialiasing
filters used in the above cases?
17. Digital to Analog Conversion
Digital data can be converted to an analog signal by creating a train of
impulses from digital data and then applying a low pass filter
This is theoretically perfect, but practically difficult !
18. Digital to Analog Conversion
A more practical method is to hold the last value until the
next is received - Zeroth-Order Hold
This results in multiplying the spectrum by the sinc function
19. However, in simple applications, this problem can be ignored.
Digital to Analog Conversion
The sinc function modifies the spectrum of the
original signal.
The output filter must
have a 1/sinc
response to correct
this problem.
20. Digital to Analog Conversion
If the correct filter is used, the reconstructed signal
will be identical to the original signal.
21. Analog Filters for Data Conversion
Analog filters are required both at input and at output.
22. Selecting an anti-alias filter
Is the analog signal time domain encoded or
frequency domain encoded?
23. Selecting an anti-alias filter
Example 1:
ECG
Information is contained in the shape of the signal in the time domain.
Time domain encoding
24. Selecting an anti-alias filter
Example 2:
EEG
Information is contained in the shape of the signal in the time domain.
Time domain encoding
25. Selecting an anti-alias filter
Example 3:
Sound
Our ear is sensitive to the frequency content of sound and not to the
time domain shape or to the phase.
Frequency domain encoding
26. Selecting an anti-alias filter
Example 4:
pictures
Time domain encoding
Information is contained in the shape of the signal in the time domain.
27. Filters may be classified as either digital or analog.
Filters
Digital filters use a digital processor to perform numerical calculations on sampled values of
the signal. The processor may be a general-purpose computer such as a PC, or a specialized
DSP (Digital Signal Processor) chip.
Analog filters may be classified as either passive or active and are usually implemented with
R, L, and C components and operational amplifiers. Such filter circuits are widely used in
such applications as noise reduction, video signal enhancement, graphic equalizers in hi-fi
systems, and many other areas.
An active filter is one that, along with R, L, and C components, also contains an energy source, such as that
derived from an operational amplifier.
A passive filter is one that contains only R, L, and C components. It is not necessary that all three be
present. L is often omitted (on purpose) from passive filter design because of the size and cost of inductors โ
and they also carry along an R that must be included in the design.
28. Ideal Four types of Filters
lowpass highpass
bandpass bandstop
Realistic Filters:
30. ๏ฎ In the passband we require
that with a deviation
๏ฎ In the stopband we require
that with a deviation
1
)
( ๏
๏ท
j
e
G
0
)
( ๏
๏ท
j
e
G s
๏ค
p
๏ค
๏ฑ
p
๏ท
๏ท ๏ฃ
๏ฃ
0
๏ฐ
๏ท
๏ท ๏ฃ
๏ฃ
s
p
p
j
p e
G ๏ท
๏ท
๏ค
๏ค ๏ท
๏ฃ
๏ซ
๏ฃ
๏ฃ
๏ญ ,
1
)
(
1
๏ฐ
๏ท
๏ท
๏ค
๏ท
๏ฃ
๏ฃ
๏ฃ s
s
j
e
G ,
)
(
โข - passband edge frequency
โข - stopband edge frequency
โข - peak ripple value in the passband
โข - peak ripple value in the stopband
p
๏ท
s
๏ท
s
๏ค
p
๏ค
Filter specification parameters
31. Analog Filters for Data Conversion
Before encountering the analog-to-digital converter the input signal is processed with an
electronic low-pass filter to remove all frequencies above the Nyquist frequency (one-half the
sampling rate). This is done to prevent aliasing during sampling, and is correspondingly called
an antialias filter.
32. Three types of analog filters are commonly used: Chebyshev, Butterworth, and Bessel
Building block for active filter design. The circuit
shown implements a 2 pole low-pass filter. Higher
order filters (more poles) can be formed by cascading
stages.
to design a 1 kHz, 2 pole Butterworth filter,
Table provides the parameters: k1 = 0.1592
and k2 = 0.586. Arbitrarily selecting R1 =
10K and C = 0.01uF (common values for
op amp circuits), R and Rf can be calculated
as 15.95K and 5.86K, respectively.
Rounding these last two values to the
nearest 1% standard resistors, results in R =
15.8K and Rf = 5.90K
33. 1 kHz, 2 pole Butterworth filter
k1 = 0.1592 and k2 = 0.586. Arbitrarily selecting R1 = 10K and C = 0.01uF (common values
for op amp circuits), R and Rf can be calculated as 15.95K and 5.86K, respectively.
Rounding these last two values to the nearest 1% standard resistors, results in R = 15.8K
and Rf = 5.90K
34. A six pole Bessel filter formed by cascading three Sallen-Key circuits. This is a low-pass filter with a cutoff
frequency of 1kHz.
Need a high-pass filter?
Simply swap the R and C
components in the circuits
(leaving Rf and R1 alone).
35. The frequency response of the perfect low-pass filter is flat across the entire passband. All of the filters look
great in this respect logarithmic scale. Another story is told when the graphs are converted to a linear vertical
scale.
frequency response
Log scale
Linear scale
filters with a 1 hertz cutoff frequency
36. Frequency response of the three filters on a logarithmic scale.
The Chebyshev filter has the sharpest roll-off. Passband ripple can now be seen in the
Chebyshev filter (wavy variations in the amplitude of the passed frequencies). In fact, the
Chebyshev filter obtains its excellent roll-off by allowing this passband ripple. When more
passband ripple is allowed in a filter, a faster roll-off can be achieved.
Frequency response of the three filters on a linear scale.
The Butterworth filter provides the flattest passband. the Butterworth filter is optimized to
provide the sharpest roll off possible without allowing ripple in the passband. It is
commonly called the maximally flat filter. The Bessel filter has no ripple in the passband,
but the roll off far worse than the Butterworth.
37. step response
step response, how the filter responds when the input rapidly changes from one value to another. The horizontal
axis is shown for filters with a 1 hertz cutoff frequency. The Butterworth and Chebyshev filters overshoot and
show ringing (oscillations that slowly decreasing in amplitude). In comparison, the Bessel filter has neither of
these nasty problems.
Step response of the three filters. The times shown on the horizontal axis correspond to a one hertz cutoff frequency. The
Bessel is the optimum filter when overshoot and ringing must be minimized
38. Pulse response of the Bessel and Chebyshev filters. A key property of the Bessel filter is that the rising and
falling edges in the filter's output looking similar. In the jargon of the field, this is called linear phase. Figure
(b) shows the result of passing the pulse waveform in (a) through a 4 pole Bessel filter. Both edges are
smoothed in a similar manner. Figure (c) shows the result of passing (a) through a 4 pole Chebyshev filter. The
left edge overshoots on the top, while the right edge overshoots on the bottom. Many applications cannot
tolerate this distortion.
If this were a video signal, for instance, the distortion introduced by the Chebyshev filter would be devastating! The
overshoot would change the brightness of the edges of objects compared to their centers. Worse yet, the left side of objects
would look bright, while the right side of objects would look dark. Many applications cannot tolerate poor performance in the
step response. This is where the Bessel filter shines; no overshoot and symmetrical edges.
39. Three antialias filter options for time domain encoded signals. The goal is to
eliminate high frequencies (that will alias during sampling), while
simultaneously retaining edge sharpness (that carries information). Figure (a)
shows an example analog signal containing both sharp edges and a high
frequency noise burst. Figure (b) shows the digitized signal using a
Chebyshev filter. While the high frequencies have been effectively removed,
the edges have been grossly distorted. This is usually a terrible solution. The
Bessel filter, shown in (c), provides a gentle edge smoothing while removing
the high frequencies. Figure (d) shows the digitized signal using no antialias
filter. In this case, the edges have retained perfect sharpness; however, the
high frequency burst has aliased into several meaningless samples.
40. Multirate Data Conversion
There is a strong trend in electronics to replace analog circuitry with digital algorithms.
Consider the design of a digital voice recorder, a system that will digitize a voice signal, store the data in digital form, and
later reconstruct the signal for playback. To recreate intelligible speech, the system must capture the frequencies between
about 100 and 3000 hertz. However, the analog signal produced by the microphone also contains much higher frequencies, say
to 40 kHz.
The brute force approach is to pass the analog signal through an eight pole low-pass Chebyshev filter at 3 kHz, and then
sample at 8 kHz. On the other end, the DAC reconstructs the analog signal at 8 kHz with a zeroth order hold. Another
Chebyshev filter at 3 kHz is used to produce the final voice signal.
The next level of sophistication involves multirate techniques, using more than one sampling rate in the same system. It works
like this for the digital voice recorder example. First, pass the voice signal through a simple RC low-pass filter and sample the
data at 64 kHz. The resulting digital data contains the desired voice band between 100 and 3000 hertz, but also has an
unusable band between 3 kHz and 32 kHz. Second, remove these unusable frequencies in software, by using a digital low-pass
filter at 3 kHz. Third, resample the digital signal from 64 kHz to 8 kHz by simply discarding every seven out of eight samples,
a procedure called decimation. The resulting digital data is equivalent to that produced by aggressive analog filtering and
direct 8 kHz sampling.
41. Multirate techniques can also be used in the output portion of our example system. The 8 kHz data is pulled from
memory and converted to a 64 kHz sampling rate, a procedure called interpolation. This involves placing seven
samples, with a value of zero, between each of the samples obtained from memory. The resulting signal is a
digital impulse train, containing the desired voice band between 100 and 3000 hertz, plus spectral duplications
between 3kHz and 32 kHz. Everything above 3 kHz is then removed with a digital low-pass filter. After
conversion to an analog signal through a DAC, a simple RC network is all that is required to produce the final
voice signal.
Multirate data conversion is valuable for two reasons:
(1) it replaces analog components with software, a clear economic advantage in mass produced products, and
(2) it can achieve higher levels of performance in critical applications.
For example, compact disc audio systems use techniques of this type to achieve the best possible sound quality.
This increased performance is a result of replacing analog components (1% precision), with digital algorithms
(0.0001% precision from round-off error). As discussed in upcoming contents, digital filters outperform analog
filters by hundreds of times in key areas.
42. Introduction to Digital Filters
Digital filters are used for two general purposes: (1) separation of signals that have been combined, and (2) restoration of
signals that have been distorted in some way. Analog (electronic) filters can be used for these same tasks; however, digital
filters can achieve far superior results.
Signal separation is needed when a signal has been contaminated with interference, noise, or other signals. For example,
imagine a device for measuring the electrical activity of a baby's heart (EKG) while still in the womb. The raw signal will
likely be corrupted by the breathing and heartbeat of the mother. A filter might be used to separate these signals so that they
can be individually analyzed.
Signal restoration is used when a signal has been distorted in some way. For example, an audio recording made with poor
equipment may be filtered to better represent the sound as it actually occurred. Another example is the deblurring of an image
acquired with an improperly focused lens, or a shaky camera.
Digital filters can achieve thousands of times better performance than analog filters. This makes a dramatic difference in how
filtering problems are approached. With analog filters, the emphasis is on handling limitations of the electronics, such as the
accuracy and stability of the resistors and capacitors. In comparison, digital filters are so good that the performance of the
filter is frequently ignored. The emphasis shifts to the limitations of the signals, and the theoretical issues regarding their
processing.
43. What is a Digital Filter?
Digital Filter:
numerical procedure or algorithm that transforms a
given sequence of numbers into a second sequence
that has some more desirable properties.
45. Advantages of using digital filters
The following list gives some of the main advantages of digital over analog filters.
1. A digital filter is programmable, i.e. its operation is determined by a program stored in the processorโs memory. This
means the digital filter can easily be changed without affecting the circuitry (hardware). An analog filter can only be
changed by redesigning the filter circuit.
2. Digital filters are easily designed, tested and implemented on a general-purpose computer or workstation.
3. The characteristics of analog filter circuits (particularly those containing active components) are subject to drift and are
dependent on temperature. Digital filters do not suffer from these problems, and so are extremely stable with respect both
to time and temperature.
4. Unlike their analog counterparts, digital filters can handle low frequency signals accurately. As the speed of DSP
technology continues to increase, digital filters are being applied to high frequency signals in the RF (radio frequency)
domain, which in the past was the exclusive preserve of analog technology.
5. Digital filters are very much more versatile in their ability to process signals in a variety of ways; this includes the ability
of some types of digital filter to adapt to changes in the characteristics of the signal.
6. Fast DSP processors can handle complex combinations of filters in parallel or cascade (series), making the hardware
requirements relatively simple and compact in comparison with the equivalent analog circuitry. 45
46. Operation of digital filters
Here, we will develop the basic theory of the operation of digital filters. This is essential to an understanding of
how digital filters are designed and used.
Suppose the "raw" signal which is to be digitally filtered is in the form of a voltage waveform described by the
function
where t is time.
This signal is sampled at time intervals h (the sampling interval). The sampled value at time t = ih is
Thus the digital values transferred from the ADC to the processor can be represented by
the sequence
corresponding to the values of the signal waveform at
and t = 0 is the instant at which sampling begins.
At time t = nh (where n is some positive integer), the values available to the processor, stored in memory, are
Note that the sampled values xn+1, xn+2 etc. are not available, as they haven't happened yet!
46
47. The digital output from the processor to the DAC consists of the sequence of values
In general, the value of yn is calculated from the values x0, x1, x2, x3, ... , xn.
The way in which the y's are calculated from the x's determines the filtering action of the digital filter.
47
48. Examples of simple digital filters
The following examples illustrate the essential features of digital filters.
1. Unity gain filter:
Each output value yn is exactly the same as the corresponding input value xn:
This is a trivial case in which the filter has no effect on the
signal.
2. Simple gain filter: where K = constant.
This simply applies a gain factor K to each input value.
K > 1 makes the filter an amplifier, while 0 < K < 1 makes it an attenuator. K < 0 corresponds to an
inverting amplifier. Example (1) above is simply the special case where K = 1.
xn
yn = K xn
K
48
49. 3. Pure delay filter:
The output value at time t = nh is simply the input at time t = (n-1)h, i.e. the signal is delayed by time h:
Note that as sampling is assumed to commence at t = 0, the input value x-1 at t = -h is undefined. It is usual to
take this (and any other values of x prior to t = 0) as zero.
4. Two-term difference filter:
The output value at t = nh is equal to the difference between the current input xn and the previous input xn-
1:
i.e. the output is the change in the input
over the most recent sampling interval h.
The effect of this filter is similar to that of
an analog differentiator circuit.
49
50. 5. Two-term average filter:
The output is the average (arithmetic mean) of the current and previous input:
This is a simple type of low pass filter as it
tends to smooth out high-frequency variations
in a signal.
(We will look at more effective low pass filter
designs later).
50
51. 6. Three-term average filter:
This is similar to the previous example, with the average being taken of the current and two previous
inputs:
As before, x-1 and x-2 are taken to be zero.
51
52. 7. Central difference filter:
This is similar in its effect to example (4). The output is equal to half the change in the input signal over
the previous two sampling intervals:
52
53. Order of a digital filter
The order of a digital filter is the number of previous inputs (stored in the processor's memory) used to
calculate the current output.
Thus:
1. Examples (1) and (2) above are zero-order filters, as the current output yn depends only on the current
input xn and not on any previous inputs.
2. Examples (3), (4) and (5) are all of first order, as one previous input (xn-1) is required to calculate yn. (Note
that the filter of example (3) is classed as first-order because it uses one previous input, even though the
current input is not used).
3. In examples (6) and (7), two previous inputs (xn-1 and xn-2) are needed, so these are second-order filters.
Filters may be of any order from zero upwards.
53
54. Digital filter coefficients
All of the digital filter examples given above can be written in the following general forms:
Similar expressions can be developed for filters of any order.
The constants b0, b1, b2, ... appearing in these expressions are called the
filter coefficients. It is the values of these coefficients that determine
the characteristics of a particular filter.
๐ฆ๐ = ๐0๐ฅ๐
๐ฆ๐ = ๐0๐ฅ๐ + ๐1๐ฅ๐โ1
๐ฆ๐ = ๐0๐ฅ๐ + ๐1๐ฅ๐โ1 + ๐2๐ฅ๐โ2
Zero order :
First order :
Second order:
xn
yn = b0 xn
b0
+
b0
xn
Z-1
yn
b1
+
b0
xn
Z-1
yn
b1
Z-1
b2
54
55. The following table gives the values of the coefficients of each of the filters given as examples above.
b0 b1 b2
55
56. Q1
56
a) Order = 1 : b0 = 2, b1 = -1
b) Order = 2 : b0 = 0, b1 = 0, b2 = 1
c) Order = 3 : b0 = 1, b1 = -2, b2 =2, b3 = 1
57. Recursive and non-recursive filters
For all the examples of digital filters discussed so far, the current output (yn) is calculated solely from the
current and previous input values (xn, xn-1, xn-2, ...). This type of filter is said to be non-recursive.
A recursive filter is one which in addition to input values also uses previous output values. These, like the
previous input values, are stored in the processor's memory.
The word recursive literally means "running back", and refers to the fact that previously-calculated output
values go back into the calculation of the latest output. The expression for a recursive filter therefore contains
not only terms involving the input values (xn, xn-1, xn-2, ...) but also terms in yn-1, yn-2, ...
From this explanation, it might seem as though recursive filters require more calculations to be performed, since
there are previous output terms in the filter expression as well as input terms. In fact, the reverse is usually the
case: to achieve a given frequency response characteristic using a recursive filter generally requires a much
lower order filter (and therefore fewer terms to be evaluated by the processor) than the equivalent non-recursive
filter. This will be demonstrated later.
57
58. Some people prefer an alternative terminology in which a non-recursive filter is known as an
FIR (or Finite Impulse Response) filter, and a recursive filter as an IIR (or Infinite Impulse
Response) filter.
These terms refer to the differing "impulse responses" of the two types of filter. The impulse
response of a digital filter is the output sequence from the filter when a unit impulse is applied
at its input. (A unit impulse is a very simple input sequence consisting of a single value of 1 at
time t = 0, followed by zeros at all subsequent sampling instants).
An FIR filter is one whose impulse response is of finite duration. An IIR filter is one whose
impulse response theoretically continues for ever because the recursive (previous output)
terms feed back energy into the filter input and keep it going. The term IIR is not very
accurate because the actual impulse responses of nearly all IIR filters reduce virtually to zero
in a finite time. Nevertheless, these two terms are widely used.
58
59. Example of a recursive filter
A simple example of a recursive digital filter is given by
In other words, this filter determines the current output (yn) by adding the current input (xn) to the previous
output (yn-1):
Note that y-1 (like x-1) is undefined, and is usually taken to be zero.
59
60. Let us consider the effect of this filter in more detail. If in each of the above expressions we substitute for yn-1 the
value given by the previous expression, we get the following:
Thus we can see that yn, the output at t = nh, is equal to the sum of the current input xn and all the previous
inputs. This filter therefore sums or integrates the input values, and so has a similar effect to an analog
integrator circuit.
60
61. This example demonstrates an important and useful feature of recursive filters: the economy with which the
output values are calculated, as compared with the equivalent non-recursive filter. In this example, each output
is determined simply by adding two numbers together. For instance, to calculate the output at time t = 10h, the
recursive filter uses the expression
To achieve the same effect with a non-recursive filter (i.e. without using previous output values stored in
memory) would entail using the expression
This would necessitate many more addition operations as well as the storage of many more values in memory.
61
62. Order of a recursive (IIR) digital filter
The order of a digital filter was defined earlier as the number of previous inputs which have to be stored in
order to generate a given output. This definition is appropriate for non-recursive (FIR) filters, which use only
the current and previous inputs to compute the current output. In the case of recursive filters, the definition
can be extended as follows:
The order of a recursive filter is the largest number of previous input or output values
required to compute the current output.
This definition can be regarded as being quite general: it applies both to FIR and IIR filters.
For example, the recursive filter discussed above, given by the expression
is classed as being of first order, because it uses one previous output value (yn-1), even though no previous
inputs are required.
In practice, recursive filters usually require the same number of previous inputs and outputs. Thus, a first-
order recursive filter generally requires one previous input (xn-1) and one previous output (yn-1), while a second-
order recursive filter makes use of two previous inputs (xn-1 and xn-2) and two previous outputs (yn-1 and yn-2); and
so on, for higher orders.
Note that a recursive (IIR) filter must, by definition, be of at least first order; a zero-order recursive filter is an
impossibility. (Why?) 62
64. From the above discussion, we can see that a recursive filter is basically like a non-recursive filter, with the
addition of extra terms involving previous inputs (yn-1, yn-2 etc.).
Coefficients of recursive (IIR) digital filters
A first-order recursive filter can be written in the general form
๐ฆ๐ =
๐0๐ฅ๐ + ๐1๐ฅ๐โ1 โ ๐1๐ฆ๐โ1
๐0
Note the minus sign in front of the "recursive" term a1yn-1, and the factor (1/a0) applied to all the coefficients.
The reason for expressing the filter in this way is that it allows us to rewrite the expression in the following
symmetrical form:
๐0๐ฆ๐ + ๐1๐ฆ๐โ1 = ๐0๐ฅ๐ + ๐1๐ฆ๐โ1
In the case of a second-order filter, the general form is
๐ฆ๐ =
๐0๐ฅ๐ + ๐1๐ฅ๐โ1 + ๐2๐ฅ๐โ2 โ ๐1๐ฆ๐โ1 โ ๐2๐ฆ๐โ2
๐0
The alternative "symmetrical" form of this expression is
๐0๐ฆ๐ + ๐1๐ฆ๐โ1 + ๐2๐ฆ๐โ2 = ๐0๐ฅ๐ + ๐1๐ฆ๐โ1 + ๐2๐ฅ๐โ2
64
66. The transfer function of a digital filter
In the last section, we used two different ways of expressing the action of a digital filter: a form giving the
output yn directly, and a "symmetrical" form with all the output terms on one side and all the input terms on the
other.
In this section, we introduce what is called the transfer function of a digital filter. This is obtained from the
symmetrical form of the filter expression, and it allows us to describe a filter by means of a convenient,
compact expression. We can also use the transfer function of a filter to work out its frequency response.
First of all, we must introduce the delay operator, denoted by the symbol z-1.
When applied to a sequence of digital values, this operator gives the previous value in the sequence. It
therefore in effect introduces a delay of one sampling interval.
Applying the operator z-1 to an input value (say xn) gives the previous input (xn-1):
66
67. Suppose we have an input sequence
Then
and so on. Note that z-1 x0 would be x-1, which is unknown (and usually taken to be zero, as we have already
seen).
67
68. Similarly, applying the z-1 operator to an output gives the previous output:
Applying the delay operator z-1 twice produces a delay of two sampling intervals:
We adopt the (fairly logical) convention
i.e. the operator z-2 represents a delay of two sampling intervals:
68
69. ๐0๐ฆ๐ + ๐1๐ฆ๐โ1 + ๐2๐ฆ๐โ2 = ๐0๐ฅ๐ + ๐1๐ฅ๐โ1 + ๐2๐ฅ๐โ2
Let us now use this notation in the description of a recursive digital filter. Consider, for example, a general
second-order filter, given in its symmetrical form by the expression
We will make use of the following identities:
Substituting these expressions into the digital filter gives
(๐0 + ๐1๐งโ1 + ๐2๐งโ2)๐ฆ๐ = (๐0 + ๐1๐งโ1 + ๐2๐งโ2)๐ฅ๐
๐ฆ๐
๐ฅ๐
=
(๐0 + ๐1๐งโ1
+ ๐2๐งโ2
)
(๐0 + ๐1๐งโ1 + ๐2๐งโ2)
This is the general form of the transfer function for a second-order recursive (IIR) filter.
69
70. A non-recursive (FIR) filter has a simpler transfer function which does not contain any denominator terms.
The coefficient a0 is usually taken to be equal to 1, and all the other a coefficients are zero. The transfer
function of a second-order FIR filter can therefore be expressed in the general form
๐ฆ๐
๐ฅ๐
= ๐0 + ๐1๐งโ1
+ ๐2๐งโ2
70
75. 75
FIR filtering
โข Finite Impulse Response (FIR) filters use past input samples only
โข Example:
โข y(n)=0.1x(n)+0.25x(n-1)+0.2x(n-2)
โข Z-transform: Y(z)=0.1X(z)+0.25X(z)z-1+0.2X(z)z-2
โข Transfer function: H(z)=Y(z)/X(z)=0.1+0.25z-1+0.2z-2
โข No poles, just zeroes. FIR is stable
76. 76
Example
โข A filter is described by the following equation:
โข y(n)=0.5x(n) + 1x(n-1) + 0.5x(n-2)
โข What kind of filter is it?
โข Plot the filterโs transfer function on the z plane
โข Is the filter stable?
โข Plot the filterโs unit step response
โข Plot the filterโs unit impulse response
77. 77
FIR - IIR filter comparison
โข FIR
โข Simpler to design
โข Inherently stable
โข Can be designed to have linear phase
โข Require lower bit precision
โข IIR
โข Need less taps (memory, multiplications)
โข Can simulate analog filters
78. 78
Example
โข A filter is described by the following equation:
โข y(n)=0.5x(n) + 0.2x(n-1) + 0.5y(n-1) + 0.2y(n-2),
with initial condition y(-1)=y(-2) = 0
โข What kind of filter is it?
โข Plot the filterโs transfer function on the z plane
โข Is the filter stable?
โข Plot the filterโs unit step response
โข Plot the filterโs unit impulse response
80. Systems
A signal is a description of how one parameter
varies with another parameter.
A system is any process that produces an output
signal in response to an input signal.
80
87. Time-Invariant Systems
If an input x[n] produces an output y[n]
then the input x[n+s] produces the output
y[n+s] for any value of s.
Note: Time invariance is not a requirement for linearity.
However, almost all linear systems we deal with in
DSP are time invariant.
87
89. Sinusoidal Fidelity
If the input to a linear system is a sinusoidal
wave, the output will also be a sinusoidal
wave, and will have exactly the same frequency
as the input.
Sinusoids are the only waveforms that have this
property.
89
94. Superposition
Input and output signals can be viewed as
superpositions (sums) of simpler waveforms.
Superposition is the foundation of DSP.
The simpler waveforms may be impulses, sine
waves or some other waveforms.
94
95. When we are dealing with linear systems, the
only way signals can be combined is by scaling
(multiplication of the signals by constants)
followed by addition. For instance, a signal
cannot be multiplied by another signal.
Decomposition is the inverse operation of synthesis,
where a single signal is broken into two or more additive
components. This is more involved than synthesis,
because there are infinite possible decompositions for any
given signal.
This process of combining signals through scaling
and addition is called synthesis.
96. The Fundamental Concept of DSP
The fundamental concept in DSP - Any
signal, such as x [n], can be decomposed into
a group of additive components, shown here
by the signals: x0[n], x1[n], and x2[n]. Passing
these components through a linear system
produces the signals, y0[n], y1[n], and y2[n].
The synthesis (addition) of these output
signals forms y [n], the same signal produced
when x [n] is passed through the system.
input signal components
output signal components
Common Decompositions
Impulse Decomposition
Step Decomposition
Fourier Decomposition
98. Impulse Decomposition
As shown in the figure, impulse decomposition breaks an N samples
signal into N component signals, each containing N samples.
Each of the component signals contains one point from the original
signal, with the remainder of the values being zero. A single
nonzero point in a string of zeros is called an impulse. Impulse
decomposition is important because it allows signals to be
examined one sample at a time. Similarly, systems are
characterized by how they respond to impulses. By knowing how a
system responds to an impulse, the system's output can be
calculated for any given input. This approach is called convolution.
99. Impulse Decomposition
+
+ +
+ ...
X[n]=a
Each of the component signals contains one point from the original
signal, with the remainder of the values being zero. 99
100. Step Decomposition
+
+ +
+ ...
Zeros for points
0 through k-1.
Remaining points
have a value of:
x[k] - x[k-1]
100
101. Even/Odd Decomposition
A signal having N points broken into two components
- one having even symmetry around N/2
- the other having odd symmetry around N/2
101
104. Fourier Decomposition
Decomposition into Sine waves
Some signals are created this way
In a linear system, a sinusoidal input always
results in a sinusoidal output
Powerful mathematical analysis is possible
104
107. ๐0๐ฆ๐ + ๐1๐ฆ๐โ1 + ๐2๐ฆ๐โ2 = ๐0๐ฅ๐ + ๐1๐ฅ๐โ1 + ๐2๐ฅ๐โ2
First method in time domain: Linear difference equations
The linear time-invariant digital filter can then be described by the linear difference equation:
107
118. 118
Liner Digital Filter in Python
https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.lfilter.html
Frequency Response of the Digital Filter
https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.freqz.html#scipy.signal.freqz
122. 122
โข z-transform of the output/z transfer of the input
โข Pole-zero form
)
(
)
(
)
(
z
X
z
Y
z
H ๏ฝ
Transfer Function
Pole-zero plot
Return zero, pole, gain (z,p,k)
representation from a numerator,
denominator representation of a
linear filter.