Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Simple measures
3 2.5 2 1.5 1 0.5 0 -0.5 -1 -1.5 -2 : : : : 0 2 4 6 8 10 12 14 16 signal maximum minimum max-abs 18 20 p2p-amp = 4.709
Maximum x: max(x) Minimum x: min(x) Peak amplitude: max(abs(x)) Peak-to-peak values: max(x)-min(x)
Simple measures
% signal characterization (time domain) fs = 100; dt = 1/fs; np = 2000; t = 0:dt:(np-1)*dt; s = sin(8*t)+cos(t.^1.5)+sin(0.1*t); [maxs,locmaxs] = max(s); tmaxs = t(locmaxs); [mins,locmins] = min(s); tmins = t(locmins); maxabs = max(abs(s)); tmaxabs = t(abs(s)==maxabs); p2pamp = maxs-mins; figure; plot(t,s,'-b',tmaxs, maxs,'or',tmins,mins,'^r',tmaxabs,maxabs,'+k','markersize',10); legend(': signal',': maximum',': minimum',': max-abs') text(1.01*tmaxabs,0.9*maxabs,['p2p-amp = ',num2str(p2pamp)])
0 1 = = = ( )
x1 x2
xn
10
The first raw moment is the mean (). E is the expectation operator that calculates the mean (expected value) of a random variable.
1 =
The second central moment is the variance ( ). The variance is a measure of how far a set of numbers is spread out. The standard deviation () shows how much dispersion exists from the mean. A useful property of standard deviation is that, unlike variance, it is expressed in the same units as the data. Commonly used to measure confidence in statistical conclusions and/or detect outliers.
1 =
Skewness is a measure of the asymmetry of the distribution. The skewness value can be positive or negative.
Skewness is sensitive to an assimetry being introduced into an initially simmetric system (e.g. an initially linear system undergoing inelastic excursions)
1 =
Kurtosis measures the peaked nature of the measured-response distribution. A higher kurtosis indicates a distribution, where a majority of the variance is caused by a few severe deviations from the mean rather than more frequent modest deviations.
bins = 50; % number of bins for histogram aux = 3.6*np/bins; % auxiliar for plotting limsforx = [-5 5]; figure; subplot(211);plot(t,s) subplot(212);hist(s,bins); xlim(limsforx); hold on stem(mr1,aux,'r','linewidth',2,'markerfacecolor','g') stem([mr1-std, mr1+std],aux*[1 1],'--g','linewidth',2,'markerfacecolor','c') legend(': pdf',': mean', ': mean+(-)std') text(limsforx(1)+0.5,0.85*aux,['skewness = ',num2str(ms3)]); text(limsforx(1)+0.5,0.6*aux,['kurtosis = ',num2str(ms4)]);
10
20
30
40
50
60
70
80
90
100
800 600 400 200 0 -5 skewness = -0.040885 kurtosis = 2.9747 : pdf : mean : mean+(-)std
=0 = 0 = 3
5
-4
-3
-2
-1
10
20
30
40
50
60
70
80
90
100
400 skewness = 0.0067829 300 200 100 0 kurtosis = 1.8083 : pdf : mean : mean+(-)std
-1
-0.8
-0.6
-0.4
-0.2
0.2
0.4
0.6
0.8
accel. [g]
-0.2
10
15
20
25
30
35
0 -0.15
-0.1
-0.05
0.05
0.1
0.15
accel. [g]
0 -0.5 -1
10
15
20
25
30
35
-0.6
-0.4
-0.2
0.2
0.4
0.6
0.8
disp.. [cm]
-5
10
15
20
25
30
35
200
0 -5
-4
-3
-2
-1
accel. [g]
accel. [g]
0 -0.5 -1 40
45
50
55
60
65
70
75
80
disp.. [cm]
5 0 -5 -10
20
40
60
80
100
120
140
160
180
-6
-4
-2
( , ) =
1 ( , ) =
The crest factor and K-factor are often used to asses the deviation from sinusoidal response. What are the C and K values for a sinusoid?
% energy and power: np = 20000; dt = 0.01; tf = (np-1)*dt; t = (0:dt:tf)'; s = 3*sin(0.1*pi*t); E = dt*trapz(s.^2); P = E/tf; Et = dt*cumtrapz(s.^2); rms1 = sqrt(dt*trapz(s.^2)/tf); rms2 = sqrt(sum(s.^2)/np); C = max(abs(s))/rms1; K = max(abs(s))*rms1; figure; subplot(211); plot(t,s); subplot(212); plot(t,Et,t,E*ones(size(t)),'r-'); disp('=========================') disp(['E = ',num2str(E)]); disp(['P = ',num2str(P)]); disp(['RMS1 = ',num2str(rms1)]); disp(['RMS2 = ',num2str(rms2)]); disp(['C = ',num2str(C)]); disp(['K = ',num2str(K)]); disp('=========================')
20
40
60
80
100
120
140
160
180
200
1000 800 600 400 200 0 0 20 40 60 80 100 120 140 160 180 200
energy
-What are the units? -Will these values change with the sinusoid amplitude or frequency?
20
40
60
80
100
120
140
160
180
200
250 200 150 100 50 0 0 20 40 60 80 100 120 140 160 180 200
20
40
60
80
100
120
140
160
180
200
80 60 40 20 0
20
40
60
80
100
120
140
160
180
200
0 x 10
5
20
40
60
80
100
120
140
160
180
15
10
20
40
60
80
100
120
140
160
180
0 x 10
7
20
40
60
80
100
120
140
160
180
20
40
60
80
100
120
140
160
180