Record length, line spacing and number of lines
The Spectrum: FFT, Resolution and Windows
On this page
A spectrum of a motor shows a line near 100 Hz. If it is four times the running speed, the cause is mechanical and a fitter is called. If it is twice the supply frequency, the cause is electrical and an electrician is called. With the wrong settings the two cannot be told apart, the wrong person opens the machine, and the fault is still there afterwards. This lesson shows what the sampling rate, the record length and the window each decide, how large the amplitude error of a line can be, and how to choose settings that separate two close components. #FFT #VibrationAnalysis #SignalProcessing
Learning Objectives
By the end of this lesson, you will be able to:
- Compute an amplitude spectrum in which a sine of peak amplitude
reads - Calculate the highest frequency, the line spacing and the number of lines from the sampling rate and the record length
- Explain leakage and state the largest amplitude error of the rectangular and Hann windows
- Choose the record length that separates two components a known distance apart
- Predict where a component above half the sampling rate appears, and say how it is prevented
Real-World System Problem: Is the line at 100 Hz mechanical or electrical
A 22 kW, 4 pole motor drives a compressor at 1465 rev/min, so its running frequency is 24.42 Hz. Four times the running frequency (4×) is 97.68 Hz. The supply is 50 Hz, and the magnetic pull between stator and rotor of any induction motor rises and falls twice in each supply cycle, at 100 Hz. The two frequencies are 2.32 Hz apart.
A component at 4× moves with the shaft speed and is consistent with a mechanical source such as looseness; one at exactly 100 Hz does not, and is consistent with an electrical source. The treatments differ, so the analyst must know which is present, or whether both are.
Whether the spectrum can show two lines is decided before the measurement, by three settings: the sampling rate, the record length, and the window.
Fundamental Theory: From samples to lines
Sine in, line out
Any steady signal can be written as a sum of sines, each with its own frequency, amplitude and phase. The spectrum is a plot of the amplitude of each sine against its frequency. A pure sine gives one line. A machine gives a line for each thing that repeats: the shaft once a turn, the vanes of a pump, the teeth of a gear.
The fast Fourier transform (FFT) finds these amplitudes from a block of samples. It does not search for the frequencies present; it measures the content at a fixed set of equally spaced frequencies, called lines or bins, placed by the settings.
Sampling rate and the highest frequency
The sampling rate
At
Record length and resolution
A record of
The line spacing depends only on the record length. To see detail of 0.25 Hz you must record for 4 s. Faster sampling raises the highest frequency, and a longer record brings the lines closer together. The cost of fine resolution is time, and the machine must hold its speed steady for that time.
Scaling the spectrum to read amplitude
The function numpy.fft.rfft returns one complex number
Amplitude spectrum
For the Hann window
With this scaling the spectrum reads peak amplitude in the units of the signal, here mm/s. Divide a line by
Leakage
The FFT treats the record as one period of a signal that repeats without end. If the record holds a whole number of cycles, the end joins the start smoothly and the spectrum shows one clean line of the correct height.
A real record usually ends part way through a cycle, so the repeated signal jumps at each join, and a jump is not a pure sine. Its energy spreads over many lines on both sides of the true frequency: leakage. The highest line reads too low, and a skirt of false content covers small neighbouring components.
The Hann window
A window is a set of weights, one for each sample, that multiplies the record before the FFT. The Hann window is one cycle of a raised cosine: it is zero at both ends of the record and 1 in the middle.
With both ends brought smoothly to zero, the jump at the join disappears and the skirt falls away quickly. Using no window weights every sample by 1: the rectangular window.
The price: the window removes part of the signal, so the spectrum is divided by the window’s mean, and each line becomes wider. A sine exactly on a line reads 1.000 on that line with the Hann window, 0.500 on each neighbour and 0.000 on the next lines. The Hann main lobe is 4 lines wide from zero to zero, against 2 lines for the rectangular window.
The picket fence error
You see the spectrum only at the lines, like a hill seen through the gaps in a fence. When a component lies between two lines, neither is at the top of its main lobe, and the highest line reads low. Let
The worst case is
Separating two close components
Two components appear as two lines only if their main lobes stay apart. A Hann main lobe is 4 lines,
Guide for the record length (Hann window)
Aliasing and the anti-alias filter
A component above
A 3000 Hz component sampled at 5120 samples per second appears at
So the removal must happen before sampling: an analogue low-pass filter, the anti-alias filter, between the sensor and the sampler removes content above about
A real filter does not cut off like a wall; it falls over a range of frequencies. This is the reason for the factor 2.56. With
Averaging
The noise floor of one spectrum is ragged, because each noise line is a random value. Averaging the spectra of several records, line by line, makes it steadier. The script averages the squared amplitudes of 8 records of 4 s. Between 500 and 1500 Hz, the scatter of the floor about its mean falls from 52 percent for one spectrum to 17 percent for 8, and the highest noise line falls from 0.0025 to 0.0014 mm/s. The mean level of the floor does not fall (0.0008 mm/s in both cases). A small real line then stands clear of a smooth floor. Averaging does not lower the floor, and it does not correct the picket fence error: the 1× line still reads 1.123 mm/s.
Application 1: Reading 1× and 2× of the compressor motor
Step 1: The lines of this record
Click to reveal the line spacing
-
Samples and lines.
The spectrum has a line every 0.25 Hz. ✅
-
Where 1× falls.
The 1× component lies between line 97 (24.25 Hz) and line 98 (24.50 Hz), 0.32 of a line from line 98. The record holds 97.68 cycles of 1×, not a whole number, so there will be leakage. ✅
-
Where 2× falls.
. The 2× component is 0.36 of a line above line 195 (48.75 Hz). ✅
Step 2: Rectangular window
Click to reveal the readings without a window
-
1× reading. With
the highest line near 1× is at 24.50 Hz and reads 1.006 mm/s. The true value is 1.2 mm/s, so the reading is 16.2 percent low. ✅ -
2× reading. The highest line near 2× is at 48.75 Hz and reads 0.239 mm/s against a true 0.3 mm/s, which is 20.3 percent low. ✅
-
The skirt. Between 30 Hz and 45 Hz the signal contains only noise, but the highest line reads 0.0129 mm/s. This is leakage, about 15 times the noise floor. A real component of that size would be hidden. ✅
Step 3: Hann window
Click to reveal the readings with the Hann window
-
Apply the window and the correction. Multiply the samples by the Hann window and use
. ✅ -
1× reading. The line at 24.50 Hz reads 1.124 mm/s, which is 6.4 percent low. ✅
-
2× reading. The line at 48.75 Hz reads 0.277 mm/s, which is 7.8 percent low. ✅
-
The skirt. Between 30 Hz and 45 Hz the highest line now reads 0.0022 mm/s, about one sixth of the value without a window. ✅
Step 4: Check with the formulas and find the worst case
Click to reveal the check
-
Rectangular window, 1×. With
: The spectrum gave 1.006 mm/s. The small difference is noise and the leakage of the other component. ✅
-
Hann window, 1×.
The spectrum gave 1.124 mm/s. ✅
-
2× by the same formulas. With
the formulas give 0.240 mm/s for the rectangular window and 0.276 mm/s for the Hann window, against 0.239 and 0.277 from the spectrum. ✅ -
Worst case by a sweep. The script moves a sine of amplitude 1 from a line to half way between two lines in 50 steps and keeps the lowest reading. The result is 0.637 for the rectangular window (36.3 percent low) and 0.849 for the Hann window (15.1 percent low). At
the formulas give and , the same values. ✅
Application 2: Separating 4× from twice line frequency
Step 1: The record length needed
Click to reveal the guide applied
-
Distance between the components.
The two components are 2.32 Hz apart. ✅
-
Guide for the Hann window.
A record shorter than about 0.86 s cannot separate them. A record of about 1.7 s or longer separates them clearly. ✅
-
Samples and lines. At 5120 samples per second, 1.72 s needs
The next power of two is 16,384 samples, which is 3.2 s and 8192 lines. The 4.0 s record of the generator, with 10,240 lines, is long enough. ✅
Step 2: The spectrum of the 0.5 s record
Click to reveal the short record
-
Line spacing.
. The components are lines apart, far below the 4 lines of the guide. ✅ -
The readings. The lines at 94, 96, 98, 100 and 102 Hz read 0.005, 0.123, 0.121, 0.137 and 0.103 mm/s. ✅
-
What this shows. The three lines from 96 to 100 Hz are nearly equal: one wide hump. No line reads the true 0.2 mm/s, and the nearest lines to 97.68 Hz are 96 and 98 Hz. The two components have merged. ✅
Step 3: The spectrum of the 4.0 s record
Click to reveal the long record
-
Line spacing.
. The components are lines apart, more than twice the 4 lines of the guide. ✅ -
The readings. There is a line of 0.190 mm/s at 97.75 Hz and a line of 0.201 mm/s at 100.00 Hz. The lowest line between them reads 0.0004 mm/s, which is the noise floor. The two components are separate. ✅
-
Check the amplitudes. The 100 Hz component falls exactly on a line (100/0.25 = 400), so it reads its true 0.2 mm/s with a little noise added. The 4× component is
of a line from its nearest line, and the Hann formula gives This is the value the spectrum shows. ✅
-
Check the guide at two more lengths. At 1.0 s (2.32 lines apart, just above
) the two lines read 0.188 and 0.199 mm/s and the line between them reads 0.140 mm/s: a shallow dip that could be missed. At 2.0 s (4.64 lines apart, just above ) the line between them reads 0.0047 mm/s, a clear separation. The guide holds on this signal. ✅
Verify It in Python
The script uses the course generator without change, and one function for the amplitude spectrum with the scaling and the window correction stated in the code. It reproduces both applications, sweeps a sine across half a line spacing, samples a 3000 Hz component to show its alias, and averages 8 spectra.
"""Amplitude spectrum with and without a Hann window: leakage, resolution,aliasing and averaging, on the generated signal of machine A."""import numpy as npimport matplotlib.pyplot as plt
def machine_signal(fs=5120, seconds=4.0, fr=24.42, amp_1x=1.2, amp_2x=0.3, others=(), noise=0.05, seed=5): """Vibration velocity in mm/s. amp_* are PEAK amplitudes in mm/s. others: sequence of (frequency_hz, peak_amplitude_mm_s, phase_rad).""" rng = np.random.default_rng(seed) n = int(fs * seconds); t = np.arange(n) / fs v = amp_1x * np.sin(2 * np.pi * fr * t) + amp_2x * np.sin(2 * np.pi * 2 * fr * t + 0.7) for f, a, ph in others: v = v + a * np.sin(2 * np.pi * f * t + ph) return t, v + rng.normal(0.0, noise, n)
def amplitude_spectrum(x, fs, window="hann"): """Peak-amplitude spectrum: a sine of peak A on a line reads A. amplitude = 2 |X| / (n * mean of the window). Rectangular window: mean 1, so 2|X|/n. Hann window: mean 0.5, so the spectrum scaled by n is multiplied by 2 (the Hann amplitude correction).""" n = len(x) k = np.arange(n) w = np.ones(n) if window == "rect" else 0.5 - 0.5 * np.cos(2 * np.pi * k / n) X = np.fft.rfft(x * w) return np.fft.rfftfreq(n, 1.0 / fs), 2.0 * np.abs(X) / (n * w.mean())
def read_peak(f, amp, f_low, f_high): """Highest line between f_low and f_high: (frequency, amplitude).""" sel = np.where((f >= f_low) & (f <= f_high))[0] i = sel[np.argmax(amp[sel])] return f[i], amp[i]
FS = 5120FR = 24.42
# ---------- Application 1: 1x and 2x with and without a window ----------t, v = machine_signal()n = len(v)print("Application 1: default machine_signal()")print(f" n = {n}, T = {n / FS:.1f} s, line spacing = {FS / n:.2f} Hz, " f"lines up to {FS / 2:.0f} Hz: {n // 2}")print(f" 1x = {FR:.2f} Hz is line {FR * n / FS:.2f}; 2x is line {2 * FR * n / FS:.2f}; " f"cycles of 1x in the record: {FR * n / FS:.2f}")spec = {}for win in ("rect", "hann"): f, a = amplitude_spectrum(v, FS, win) spec[win] = (f, a) for name, f0, true in (("1x", FR, 1.2), ("2x", 2 * FR, 0.3)): fp, ap = read_peak(f, a, f0 - 2, f0 + 2) print(f" {win:>4} {name}: line at {fp:.2f} Hz reads {ap:.4f} mm/s, " f"true {true:.1f}, error {100 * (ap - true) / true:+.1f} %") far = (f >= 30) & (f <= 45) print(f" {win:>4} highest line between 30 and 45 Hz: {a[far].max():.4f} mm/s")
# The same readings from the shape of each window's main lobefor name, f0, true in (("1x", FR, 1.2), ("2x", 2 * FR, 0.3)): d = abs(f0 * n / FS - round(f0 * n / FS)) # distance to the nearest line, in lines print(f" formula {name}: {d:.2f} lines from a line, rect {true * np.sinc(d):.4f}, " f"hann {true * np.sinc(d) / (1 - d ** 2):.4f} mm/s")
# Picket fence: sweep a unit sine across half a line spacingprint(" worst reading of a unit sine swept from a line to half way between lines:")nn = 4096tt = np.arange(nn) / FSfor win in ("rect", "hann"): worst = 1.0 for frac in np.linspace(0.0, 0.5, 51): fx = (400 + frac) * FS / nn _, a = amplitude_spectrum(np.sin(2 * np.pi * fx * tt + 0.3), FS, win) worst = min(worst, a.max()) print(f" {win:>4}: {worst:.4f} (error {100 * (worst - 1):+.1f} %, " f"{20 * np.log10(worst):+.2f} dB)")
_, a = amplitude_spectrum(np.sin(2 * np.pi * 400 * FS / nn * tt), FS, "hann")print(f" Hann, unit sine exactly on line 400: lines 400, 401, 402 read " f"{a[400]:.3f}, {a[401]:.3f}, {a[402]:.3f}")
# ---------- Application 2: separate 4x (97.68 Hz) from 100 Hz ----------F4X, F2L = 4 * FR, 100.0_, v2 = machine_signal(others=((F2L, 0.2, 0.0), (F4X, 0.2, 0.0)))print("Application 2: 4x at 97.68 Hz and twice line frequency at 100.00 Hz")delta = F2L - F4Xprint(f" spacing = {delta:.2f} Hz; guide T from 2/spacing = {2 / delta:.3f} s " f"to 4/spacing = {4 / delta:.3f} s")n_need = int(np.ceil(4 / delta * FS))print(f" at {FS} samples per second, 4/spacing needs {n_need} samples " f"({n_need // 2} lines); next power of two {2 ** int(np.ceil(np.log2(n_need)))} " f"samples = {2 ** int(np.ceil(np.log2(n_need))) / FS:.1f} s")res = {}for seconds in (0.5, 1.0, 2.0, 4.0): x = v2[: int(FS * seconds)] f, a = amplitude_spectrum(x, FS, "hann") res[seconds] = (f, a) df = FS / len(x) lo = int(np.floor(F4X / df)) # line just below 4x i1 = lo + int(np.argmax(a[lo:lo + 2])) # the higher of its two nearest lines i2 = int(round(F2L / df)) # 100 Hz falls on a line dip = a[i1:i2 + 1].min() verdict = "separate" if dip < 0.5 * min(a[i1], a[i2]) else "not separate" print(f" T = {seconds:.1f} s: spacing {df:.2f} Hz, {delta / df:.2f} lines apart, " f"reads {a[i1]:.3f} at {f[i1]:.2f} Hz and {a[i2]:.3f} at {f[i2]:.2f} Hz, " f"lowest between {dip:.4f}: {verdict}") if seconds == 0.5: hump = (f >= 94) & (f <= 102) print(" lines 94 to 102 Hz: " + ", ".join(f"{value:.3f}" for value in a[hump]))
# ---------- Aliasing ----------_, v3 = machine_signal(others=((3000.0, 0.5, 0.0),))f, a = amplitude_spectrum(v3, FS, "hann")fp, ap = read_peak(f, a, 1500, 2560)print(f"Aliasing: 3000 Hz at {FS} samples per second (limit {FS / 2:.0f} Hz)")print(f" expected at {FS} - 3000 = {FS - 3000} Hz; found {fp:.2f} Hz reading {ap:.3f} mm/s")
# ---------- Averaging: 8 spectra ----------_, v_long = machine_signal(seconds=32.0)blocks = v_long.reshape(8, n)power = np.array([amplitude_spectrum(b, FS, "hann")[1] ** 2 for b in blocks])f, single = amplitude_spectrum(blocks[0], FS, "hann")averaged = np.sqrt(power.mean(axis=0))floor = (f >= 500) & (f <= 1500)print("Averaging: noise floor between 500 and 1500 Hz")for name, s in (("1 spectrum", single), ("8 averaged", averaged)): print(f" {name}: mean {s[floor].mean():.5f}, lowest {s[floor].min():.5f}, " f"highest {s[floor].max():.5f}, scatter {100 * s[floor].std() / s[floor].mean():.0f} %")print(f" 1x read from the 8 averaged spectra: {read_peak(f, averaged, 22, 27)[1]:.4f} mm/s")
# ---------- Plot ----------fig, ax = plt.subplots(3, 1, figsize=(8, 10))for win, style in (("rect", "-"), ("hann", "--")): f, a = spec[win] ax[0].semilogy(f, a, style, label=win, linewidth=0.8)ax[0].set_xlim(0, 80); ax[0].set_ylim(1e-4, 3)ax[0].set_title("1x and 2x: rectangular against Hann"); ax[0].legend()for seconds, style in ((0.5, "o-"), (4.0, "-")): f, a = res[seconds] ax[1].plot(f, a, style, label=f"T = {seconds} s", markersize=3)ax[1].set_xlim(90, 108); ax[1].set_ylim(0, 0.25)ax[1].set_title("4x and 100 Hz at two record lengths"); ax[1].legend()ax[2].semilogy(f, single, linewidth=0.5, label="1 spectrum")ax[2].semilogy(f, averaged, linewidth=0.8, label="8 averaged")ax[2].set_xlim(0, 2560); ax[2].set_ylim(1e-5, 3)ax[2].set_title("Averaging steadies the noise floor"); ax[2].legend()for axis in ax: axis.set_ylabel("velocity (mm/s peak)")ax[2].set_xlabel("frequency (Hz)")fig.tight_layout()fig.savefig("spectrum_resolution_windows.png", dpi=120)print("Saved spectrum_resolution_windows.png")Expected output
Application 1: default machine_signal() n = 20480, T = 4.0 s, line spacing = 0.25 Hz, lines up to 2560 Hz: 10240 1x = 24.42 Hz is line 97.68; 2x is line 195.36; cycles of 1x in the record: 97.68 rect 1x: line at 24.50 Hz reads 1.0061 mm/s, true 1.2, error -16.2 % rect 2x: line at 48.75 Hz reads 0.2390 mm/s, true 0.3, error -20.3 % rect highest line between 30 and 45 Hz: 0.0129 mm/s hann 1x: line at 24.50 Hz reads 1.1235 mm/s, true 1.2, error -6.4 % hann 2x: line at 48.75 Hz reads 0.2766 mm/s, true 0.3, error -7.8 % hann highest line between 30 and 45 Hz: 0.0022 mm/s formula 1x: 0.32 lines from a line, rect 1.0078, hann 1.1228 mm/s formula 2x: 0.36 lines from a line, rect 0.2400, hann 0.2758 mm/s worst reading of a unit sine swept from a line to half way between lines: rect: 0.6370 (error -36.3 %, -3.92 dB) hann: 0.8488 (error -15.1 %, -1.42 dB) Hann, unit sine exactly on line 400: lines 400, 401, 402 read 1.000, 0.500, 0.000Application 2: 4x at 97.68 Hz and twice line frequency at 100.00 Hz spacing = 2.32 Hz; guide T from 2/spacing = 0.862 s to 4/spacing = 1.724 s at 5120 samples per second, 4/spacing needs 8828 samples (4414 lines); next power of two 16384 samples = 3.2 s T = 0.5 s: spacing 2.00 Hz, 1.16 lines apart, reads 0.123 at 96.00 Hz and 0.137 at 100.00 Hz, lowest between 0.1214: not separate lines 94 to 102 Hz: 0.005, 0.123, 0.121, 0.137, 0.103 T = 1.0 s: spacing 1.00 Hz, 2.32 lines apart, reads 0.188 at 98.00 Hz and 0.199 at 100.00 Hz, lowest between 0.1402: not separate T = 2.0 s: spacing 0.50 Hz, 4.64 lines apart, reads 0.183 at 97.50 Hz and 0.201 at 100.00 Hz, lowest between 0.0047: separate T = 4.0 s: spacing 0.25 Hz, 9.28 lines apart, reads 0.190 at 97.75 Hz and 0.201 at 100.00 Hz, lowest between 0.0004: separateAliasing: 3000 Hz at 5120 samples per second (limit 2560 Hz) expected at 5120 - 3000 = 2120 Hz; found 2120.00 Hz reading 0.500 mm/sAveraging: noise floor between 500 and 1500 Hz 1 spectrum: mean 0.00077, lowest 0.00000, highest 0.00254, scatter 52 % 8 averaged: mean 0.00084, lowest 0.00040, highest 0.00140, scatter 17 % 1x read from the 8 averaged spectra: 1.1229 mm/sSaved spectrum_resolution_windows.pngCommon Mistakes
- Raising the sampling rate to get finer resolution. Resolution is
. Only a longer record brings the lines closer. - Applying a Hann window and forgetting its correction. The spectrum then reads half of the true amplitude, and every trend and limit built on it is wrong by a factor of two.
- Reading the height of a line as exact. With a Hann window a component between two lines reads up to 15 percent low, and without a window up to 36 percent low.
- Trying to remove aliasing with a digital filter after sampling. The false component is already inside the band. The filter must be analogue and must come before the sampler.
- Expecting averaging to lower the noise floor or to correct amplitudes. It only makes the floor steadier.
Summary
- The spectrum shows the amplitude of each sine in the signal at a fixed set of lines. The sampling rate sets the highest frequency,
, and the record length sets the line spacing, . - With
numpy.fft.rfft, the amplitude of a line isdivided by the mean of the window, which is 1 for no window and 0.5 for Hann. - A record that does not hold whole cycles gives leakage. For the compressor motor, 1× at 1.2 mm/s reads 1.006 without a window and 1.124 with the Hann window. The worst cases are 36.3 and 15.1 percent low.
- To separate two components
apart with a Hann window, record for about at the very least and about for a clear result. The components at 97.68 and 100 Hz merge in 0.5 s and separate in 4 s. - A component above
appears at a false lower frequency (3000 Hz appears at 2120 Hz at 5120 samples per second), so an analogue filter must come before the sampler.
Exercises
1. A spectrum is needed with a line spacing of 0.125 Hz or finer at 5120 samples per second. Find the record length and the number of samples. If the instrument only accepts a power of two, find the number of samples, the record length and the line spacing it gives.
Answer
2. A program applies a Hann window and then scales the spectrum as
Answer
The correction divides by the mean of the window, 0.5, so the line reads
3. A signal is sampled at 2560 samples per second with no anti-alias filter. Where does a component at 1800 Hz appear? Where does a component at 4000 Hz appear?
Answer
The limit is 1280 Hz. The 1800 Hz component appears at
4. The borehole booster pump runs at 2900 rev/min. Its motor shows content near 100 Hz. Find the distance between 2× running speed and twice line frequency (100 Hz), the record length for a clear separation with a Hann window, and the number of samples at 5120 samples per second. If a power of two is required, how many lines apart are the two components?
Answer
References
- R. B. Randall, Vibration-based Condition Monitoring: Industrial, Automotive and Aerospace Applications, 2nd edition, Wiley, 2021.
- F. J. Harris, “On the use of windows for harmonic analysis with the discrete Fourier transform”, Proceedings of the IEEE, vol. 66, no. 1, 1978.
- C. Scheffer and P. Girdhar, Practical Machinery Vibration Analysis and Predictive Maintenance, Newnes (Elsevier), 2004.
- A. V. Oppenheim and R. W. Schafer, Discrete-Time Signal Processing, 3rd edition, Pearson, 2010.
A spectrum shows one wide hump near 98 Hz. You suspect that it hides two components, one at 97.68 Hz and one at 100 Hz. Which change to the measurement can show them as two lines?
- A record of whole cycles meets its repeat smoothly: one clean line, 1.20 mm/s.
- At 24.42 Hz the record ends part way through a cycle. The jump spreads energy: 1.01, 16 % low.
- The Hann window weights each sample: 0 at both ends, 1 in the middle.
- Windowed, the ends meet at zero: no jump, almost no skirt. The top line reads half, 0.56.
- Divided by the window's mean, 0.5: 1.12 mm/s, 6 % low, on a wider lobe.
The signal is the sum of two sines, sampled at 5120 samples per second as in the lesson. Your browser multiplies the samples by the window and computes the transform, scaled so that a sine of peak amplitude A on a line reads A. Each stem is one line of the spectrum, and the lines are 1/T apart. The thin curve shows the transform between the lines, which a real spectrum does not show you: it is the main lobe that the lines sample. A triangle marks the true frequency and amplitude of each component. Try three things. Shorten the record and watch the two lobes merge into one hump. Change to the rectangular window with the logarithmic axis and see the skirt of leakage. Move a frequency by a fraction of a line and watch the highest line change height although the component has not changed. This signal has no noise, so its readings can differ from the lesson's noisy spectrum by 0.001 to 0.003 mm/s. A pair is called separate here by the rule of the lesson's script: the lowest line between the two peaks is under half of the smaller peak.
Check yourself
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. A spectrum must have lines 0.4 Hz apart or closer. The sampling rate is 5120 samples per second. What is the shortest record?
2. A Hann spectrum, correctly scaled, shows a line of 0.80 mm/s. The component may lie anywhere between two lines. In what range is its true amplitude?
3. A program applies a Hann window and scales the result as 2|X|/n, the scaling for no window. A sine of 1.0 mm/s peak falls exactly on a line. What does the line read?
Discussion
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
My notes on this page
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
Notes on earlier wording
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.