Your Equation

Library / Structural dynamics and vibration testing / SDY-46

Structural dynamics and vibration testing

Number of complete Welch segments

Count of whole, possibly overlapping segments of length L that fit in a record of N samples when neighbours overlap by O samples.

Ref
SDY-46
Rev
v1
Field
Structural dynamics and vibration testing
Result
K

The number of complete segments of length L that fit in a record of N samples when neighbours overlap by O samples is K = 1 + ⌊(N − L)/(L − O)⌋. The step between segment starts is L − O. The incomplete tail is discarded. Overlapping segments are correlated, so K segments with overlap do not reduce the variance as much as K independent ones.

Count of whole, possibly overlapping segments of length L that fit in a record of N samples when neighbours overlap by O samples. The incomplete tail is discarded.

Calculator

Solve for
samples
256100,000
samples
1601,000
samples
0159
  • Step between segment starts, L − O128 samples
  • Fraction of the record used0.896
  • Overlap as a fraction of the segment0.5

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Number of segments () current value 6
NRecord lengthKey driver
1780
LSegment length
127
OOverlap
38
  • A 1,000-sample record with 256-sample segments overlapping by 128 samples gives 6 averages.
  • More overlap gives more segments, but past about 50–75 % the extra segments add little new information.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing ()Local stepChange in result
N Record length256 to 100,000 samples1780779+1 samples0 %
L Segment length160 to 1,000 samples12726+1 samples0 %
O Overlap0 to 159 samples385+1 samples0 %

Sweep of Overlap

Overlap (samples)Number of segments
03
19.884
39.754
59.634
79.55
99.385
119.36
139.17
1598

Sweep one variable

Number of segments ()Hover, touch, or use the arrow keys on the chart
345678 04080120 Overlap (samples) now 6

Variables and how each one contributes

K

Number of segments

Result ·

What the equation gives you. Everything else feeds it.

N

Record length

samples · typical 256 to 100,000

The record length, in samples. A longer record fits more segments. Raising it by 100 (to 1,100) moves the result by +16.7 %, from 6 to 7.

L

Segment length

samples · typical 160 to 1,000

The segment length, in samples. Longer segments mean fewer of them. Raising it by 16 (to 272) moves the result by +0 %, from 6 to 6.

O

Overlap

samples · typical 0 to 159

The overlap between neighbouring segments, in samples; it must be below L. More overlap fits more segments. Raising it by 16 (to 144) moves the result by +16.7 %, from 6 to 7.

Worked example with the values above

  1. Samples to cover after the first segment: N − L = 1,000 − 256 = 744.
  2. Step: L − O = 256 − 128 = 128; whole steps: ⌊744 / 128⌋ = 5.
  3. K = 1 + 5 = 6.

Assumptions and limits

  • A uniformly sampled, stationary record, with the window and scaling conventions stated for each entry.
  • A one-sided spectrum, with the factor 2 applied only to bins that have a distinct negative-frequency partner.

Common mistakes

  • Forgetting to divide by the window’s noise bandwidth or power, which scales the spectrum wrongly.
  • Applying the factor 2 at DC and at the Nyquist bin.
  • Assuming that zero padding adds resolution: it only interpolates the spectrum.
  • Treating overlapping segments as independent: they are correlated.

Statistics and uncertainty

Windowing and averaging trade resolution against variance and leakage. Record length sets the bin spacing, and the number of segments sets how much random error remains in the estimated spectrum.

Where it is used

  • Setting the record length, window and averaging for a vibration test so that nearby modes can be told apart.
  • Scaling windowed FFT output to correct amplitudes and spectral densities.

Maths you need

  • Discrete Fourier transform: frequency content of a sampled record
  • Window function: a taper applied to reduce spectral leakage
  • Power spectral density: power per unit frequency

Related formulas

Practise this formula