Uploaded by zekires2

Signal Processing

advertisement
SP – Signal Processing
Christophe Schram & Miguel Mendez
von Karman Institute for Fluid Dynamics
AR & EA depts
Why sampling a signal ?
l
Analog vs. digital signals
l
What is signal sampling ?
l
Deterministic vs. random signals
l
Infinite duration vs. transient signals
Transducers and signals
l
Hot wire signal in a subsonic jet
l
l
l
Pointwise measurement (?)
Velocity magnitude
Laser Doppler Velocimeter signal
l
l
l
U
Fourier transform
Irregular sampling rate
Particle Image Velocimetry signal
l
l
Cross-correlation
“Averaging”
The measured signal is itself the result of a more or less
implicit processing (à calibration)
y
Time and frequency domains
l
Time domain (sometimes) better suited to
l
Transient signals:
l
l
Broadband random signal:
l
l
White noise à no significant spectral feature
Frequency domain (sometimes) better suited to
l
Steady-state linear systems
l
l
l
Impulse response of a system (e.g. hot wire calibration)
Multi-frequency excitation (e.g. acoustic scattering)
Harmonic signals
Numerous data processing techniques involve both domains
l
l
l
Convolution in time-domain ßà Multiplication in frequency domain
Re-sampling
Short-duration Fourier transform, wavelet analysis
Data processing methods
l
Statistical
l
l
l
l
Spectral analysis
l
l
Mean, standard deviation, histograms
Transducer calibration (beware of non-linear calibration curve…)
Uncertainty analysis
Fourier transform, Welch’s periodogram
Correlation analysis
l
Auto- and cross-correlation, coherence (≠ causality!)
l
Coherent structure eduction
l
Model reduction
l
l
Mathematical reduction: Singular Value Decomposition, Proper
Orthogonal Decomposition, Dynamic Mode Decomposition, …
Model-based reduction: acoustic mode decomposition, …
Course content
l
Data sampling: A/D conversion
l
l
l
l
Statistical analysis
l
l
l
l
Hot wire anemometer, pressure probes
Correlation analysis
l
l
Cosine transform, single vs double-sided, normalization, units, …
Welch’s periodogram method
Wavelet analysis
Dynamic calibration
l
l
Fundamentals of statistics, statistical convergence, confidence intervals, …
Fourier analysis
l
l
Sample and hold, sampling error, dynamic range, …
Aliasing
Filters
Coherence, de-noising, …
Coherent structures eduction
l
Q-criterion, λ2-criterion, continuous wavelet analysis
Data sampling
Sample and hold, sampling error, dynamic range, …
Aliasing
Filters
Analog-to-digital (A/D) conversion
clock
amplifier
trigger
… + anti-aliasing filter
Analog-to-digital (A/D) conversion
A/D converter
Nb bits
Nb levels
Resolution
(10 V span)
3
8
1.25 V
12
4096
2.44 mV
16
65536
0.15 mV
Analog-to-digital (A/D) conversion
Multi-channel A/D conversion
Multiplexer
Sample and Hold
A/D conversion methods
Tracking A/D
Parallel
(flash)
A/D
Successive A/D
Real A/D converter issues
Aperture time
Analog-to-digital (A/D) conversion
Aliasing
Nyquist rule: in order to avoid aliasing, a signal must be sampled at a frequency
at least equal to twice the maximum frequency contained in the signal:
fs ≥ 2 fmax
How to know this max frequency ? Filter the signal à fmax = fcut-off,low
Data acquisition checklist
l What question am I trying to answer ?
Which transducer should I use ?
l Is it measuring the desired quantity, and only this one ?
l If not: what is it measuring ? Do the desired parameters
vary ? Can the global response be calibrated ?
l
l What kind of processing will I need ?
Statistical vs. Fourier analysis ?
l Do I need an anti-aliasing filter ?
l
l How to setup the A/D chain ?
Maximum possible voltage ? Minimum voltage to resolve ?
l Do I need an amplifier ? With offset ?
l What is the Nyquist frequency ?
l
Fourier analysis
Cosine transform, single vs double-sided, normalization, units, …
Welch’s periodogram method
Wavelet analysis
Fourier series
Baron
Joseph
Fourier
(1768-1830)
An infinite number of coefficients is generally necessary
l Cosine or sine series correspond to even or odd functions, resp.
l
Fourier series of a periodic square wave
Gibbs phenomenon
Fourier series: complex form
l
Fourier series:
l
Introducing
we have
with
l
One coefficient includes amplitude and phase information
Fourier transform
l Fourier transform of a periodic signal:
l Fourier transform of an aperiodic signal:
Power Spectral Density
l Power Spectral Density:
l Auto-correlation function:
Fourier transform and convolution
l
Response of a system with transfer function h(t), subjected to
excitation x(t) : convolution product
l
We have:
Fourier transform and convolution
l Convolution in time domain = product in Fourier
domain, and vice-versa
l Determination of transfer function of a system:
l Calculation of system response:
Discrete Fourier transform
Try to use Nt = 2N à Fast Fourier Transform
l Frequency axis:
f=[0:Nt-1]'/Nt*fs;
l Normalization Fourier transform:
l
l
Fourier coefficient, double-sided FFT: X=fft(x)/Nt;
Fourier coefficient, single-sided FFT: X=2*fft(x)/Nt;
Parseval equality: X=fft(x)/fs;
l
Integral equal to variance: Xs2=fft(x)/sqrt(fs*(Nt-1));
l
l
Fourier transform averaging
Fourier transform usually yields quite noisy spectrum
l To obtain smoother spectrum à averaging (pwelch)
l
FFT of full-length
signal (4096 pts)
average of 32 FFTs of signal
segments (128 pts each)
[S_pw,f_pw] =
pwelch(s,hann(Nfft),Noverlap,Nfft,fs);
Normalization of the pwelch transform
l
[S_pw,f_pw]=
pwelch(s,hann(Nfft),Noverlap,Nfft,fs);
l
Parseval equality: P=sum(S1_pw)*Nt/Nfft;
l
Integral equal to variance:
S_pws2=
S_pw*Nt/((Nt-1)*Nfft)*fs/(f_pw(2)-f_pw(1));
Matlab demo
l
Bad synchronization of pure sine à leakage
l
Construction of the frequency axis
l
Normalization
l
Parseval’s equality
l
Fourier transform averaging and pwelch function
Wavelet transform
l Principle: convolution of signal with a localized test
function instead of a periodic one
Mother
wavelet
Wavelet family
Selectivity in space and scale
Convolution:
Wavelet
Test signal
Cconv
Wavelet analysis vs. short-time
Fourier transform (Gabor filter)
Gabor’s uncertainty principle of signal processing: Δt Δω ≥ ½
l FT vs. STFT:
l
l
Example for s = sin(2πt) + sin(2π2t) + sin(2π4t)
f (Hz)
f (Hz)
4
4
2
2
1
t (s)
STFT
1
t (s)
Wavelet
Example of continuous wavelet transform
sin(2π10t)
FFT
sin(2π50t)
white noise
narrow gaussian
CWT
Continuous vs. discrete
wavelet transforms
l
Continuous wavelet transform:
l
l
l
Well suited to data analysis
Infinitely redundant à inversion not straightforward
Discrete wavelet transform:
l
l
Well suited to data compression (ex.: JPEG)
Less suited to data analysis
Signal and Data Processing
See slides of the
Introduction to Measurement Techniques
Lecture Series:
Fourier analysis applied to data acquisition
Statistics
Stationary Random Processes
l Define random processes
l Ensemble mean:
l Covariance:
Stationary
Stationary
and
Ergodic Processes
l Mean of the individual sample
l Covariance:
Ergodic
:
Ergodic
Joint Probability Density Function
l Two random variables
and
(e.g. pressure measured at two different
locations)
l Joint Probability Density Function (’and’):
Statistical Independence
l The individual probability density functions of
each variable can be obtained from the joint
function:
l If the variables
independent:
and
are statistically
Covariance
l Covariance between
and
l Particular case:
(variance)
l It can be shown that
:
Correlation Coefficient
l Correlation coefficient:
l Statistically independent random variables:
Covariance and Correlation
Functions
Properties
even
max
max
x and/or y
have zero
mean
Time-delay system
Time delay
Σ
Summary
l The ergodicity property of a stationary random
process allows to compute its statistical
properties using a single sample time sequence
instead of performing ensemble statistics
l Performing system analysis in a statistical sense is
more robust
Spectral Density Functions
l Can be obtained by 3 different means:
via finite Fourier transforms
l via Fourier transform of correlation function
l via filtering-squaring-averaging operations
l
Fourier Transform of the
Correlation Functions
l If the auto-correlation and cross-correlation
functions
and
L1-norm are finite, i.e.
exist, and if their
, then:
Cosine Transform
l From the symmetry property of the auto-
correlation function:
Properties
l Double-sided spectral density functions:
Real-valued, symmetric
Complex-valued
l Single-sided spectral density functions:
Relation to Mean Square Values
l Inverse Fourier transform and Cosine transform:
l Mean square value:
Coherence function
l It can be shown that
l Coherence function
Time-delay system
Time delay
Σ
Data processing in frequency
domain
l The results obtained in frequency domain are
much stronger than in time domain, since they
apply for each frequency composing the signals
Coherent structure eduction
l Apparent order in chaos ?
l Phenomenological understanding of turbulence ?
l Reduced-order model for flow control ?
Galilean indicator functions
l Velocity field: not Galilean-invariant
l Vorticity field:
Galilean-invariant
l Signed
l Strong in shear layers as well
l
l Enstrophy field:
Galilean-invariant
l Strong in shear layers as well
l
Q-criterion
l Based on a decomposition of the velocity gradient
tensor
l Definition:
l Q > Qthresh à vortical motion
Reference
l J.S. Bendat and A.G. Piersol, Random Data –
Analysis and Measurement Procedures, Wiley &
Sons, Inc. (2nd Edition), 1986
Download