קובץ:Processing gain comparison (Hann vs Blackman).gif
תוכן הדף אינו נתמך בשפות אחרות.
מראה
מתוך ויקיפדיה, האנציקלופדיה החופשית
Processing_gain_comparison_(Hann_vs_Blackman).gif (647 × 518 פיקסלים, גודל הקובץ: 16 ק"ב, סוג MIME: image/gif)
זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה. |
תקציר
תיאורProcessing gain comparison (Hann vs Blackman).gif |
English: This figure compares the processing gain of two window functions for sinusoidal inputs, with both minimum and maximum scalloping loss. |
|||
תאריך יצירה | ||||
מקור | נוצר על־ידי מעלה היצירה | |||
יוצר | Bob K | |||
אישורים והיתרים (שימוש חוזר בקובץ זה) |
אני, בעל זכויות היוצרים על עבודה זו, מפרסם בזאת את העבודה תחת הרישיון הבא:
|
|||
גרסאות אחרות |
Derivative works of this file: |
|||
GIFהתפתחות InfoField | LibreOffice עם נוצרה ה GIF תמונת מפת סיביות |
|||
Gnu Octave Script InfoField | This graphic was created with the help of the following script:
Octave codegraphics_toolkit gnuplot
N = 256; % sams_per_fft;
window1 = hann(N)'/sum(hann(N));
window2 = blackmanharris(N)/sum(blackmanharris(N));
%
Fs = N; % sams_per_sec;
HzPerBin = Fs/N;
F1 = -20.0*HzPerBin; % bin -20
F2 = +20.5*HzPerBin; % bin 20.5
%
L = 100000;
n = 1:L;
x = exp(j*2*pi*F1/Fs*n) + exp(j*2*pi*F2/Fs*n);
x = x + (randn(1,L) +j*randn(1,L))*1.4;
%
sams_per_offset = 0.75*N; % overlap = 25%
%
% number of samples available beyond just one FFT
excess_sams = length(x) - N;
%
j1 = floor( excess_sams / sams_per_offset );
sams_per_offset = floor( excess_sams / j1 );
num_ffts = 1 + j1;
%
% define the first block of data
samples = 1:N;
%
amplitude1 = zeros(1,N);
amplitude2 = zeros(1,N);
%
% Loop over all the available blocks
for j1 = 1 : num_ffts
amplitude1 = amplitude1 + abs(fft( x(samples) .* window1 ));
amplitude2 = amplitude2 + abs(fft( x(samples) .* window2 ));
samples = samples + sams_per_offset;
end
%
amplitude1 = 20*log10(fftshift(amplitude1/num_ffts));
amplitude2 = 20*log10(fftshift(amplitude2/num_ffts));
%
abscissa = -40:40;
figure
set(gca,'FontSize',8)
subplot(2,1,1);
h = area(abscissa, amplitude1(abscissa +N/2+1), ...
'FaceColor', [.871 .49 0], 'edgecolor', [.871 .49 0])
set(h,'BaseValue',-20)
xlim([-40 40])
ylim([-20 2])
set(gca,'XTick', [ ])
set(gca,'YGrid','on')
ylabel('decibels')
title('Hann');
%
subplot(2,1,2);
h = area(abscissa, amplitude2(abscissa +N/2+1), ...
'FaceColor', [.871 .49 0], 'edgecolor', [.871 .49 0])
set(h,'BaseValue',-20)
xlim([-40 40])
ylim([-20 2])
set(gca,'XTick', [ ])
set(gca,'YGrid','on')
ylabel('decibels')
title('Blackman-Harris');
|
פריטים שמוצגים בקובץ הזה
מוצג
ערך כלשהו ללא פריט ויקינתונים
24 בפברואר 2013
היסטוריית הקובץ
ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.
תאריך/שעה | תמונה ממוזערת | ממדים | משתמש | הערה | |
---|---|---|---|---|---|
נוכחית | 04:02, 25 בפברואר 2013 | 518 × 647 (16 ק"ב) | Bob K | User created page with UploadWizard |
שימוש בקובץ
אין בוויקיפדיה דפים המשתמשים בקובץ זה.
מטא־נתונים
קובץ זה מכיל מידע נוסף, שכנראה הגיע ממצלמה דיגיטלית או מסורק שבהם הקובץ נוצר או עבר דיגיטציה.
אם הקובץ שונה ממצבו הראשוני, כמה מהנתונים להלן עלולים שלא לשקף באופן מלא את הקובץ הנוכחי.
הערה בקובץ GIF | Created with GIMP |
---|