Advanced maths

Discrete prolate spheroidal sequence concentration calculator

Compute discrete prolate spheroidal sequences and their spectral concentration ratios for a finite sequence length and time-bandwidth product.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Compute discrete prolate spheroidal sequences and their spectral concentration ratios for a finite sequence length and time-bandwidth product. The tapers are normalized orthogonal vectors ordered by energy concentration within the selected frequency band. The page reports the explicit sinc concentration operator’s eigenvalues, taper samples and numerical eigenpair residual, with sign and near-degeneracy conventions made visible.

THE FORMULAK_ii=2W; K_ij=sin(2πW(i−j))/(π(i−j)), i≠j; Kv_k=λ_kv_k, ||v_k||₂=1. λ_k is in-band energy fraction; Σ_all λ_k=trace(K)=2NW.

A worked example

For N=8, NW=2 and three requested tapers, W=.25. The concentration ratios are approximately .99998385,.99886186,.97145189 and the full operator trace is4. The leading taper is symmetric and positive; the next is antisymmetric. Their unit norms and mutual orthogonality are separate checks from their high concentration.

Good to know

Integer length N=4–64, finite time-bandwidth product0<NW<N/2, and1–min(N,10) requested tapers. Normalized half-bandwidth W=NW/N cycles per sample; real symmetric dense sinc operator. Unit Euclidean norm, eigenvalues descending, first resolved nonzero taper entry positive. Near-degenerate eigenvectors may rotate/sign-change; floating Jacobi eigensolver residual is not a certified spectral bound. No power spectrum or automatic taper count.

Finite time support limits frequency concentration

A nonzero finite sequence cannot be perfectly confined to a finite frequency band in the continuous discrete-time Fourier domain. DPSS chooses sequences that concentrate as much energy as possible inside a specified symmetric band.

The first taper maximizes this fraction. Each subsequent taper maximizes it while remaining orthogonal to earlier ones. These are optimization-defined sequences rather than arbitrary smooth window shapes.

Discrete prolate spheroidal sequence concentration calculator worked exampleThree orthogonal sequences with high band concentrationUnit-norm taper samplesλ1 = 0.999984λ2 = 0.998862λ3 = 0.971452N = 8; NW = 2; W = .25 cycles/sampleTrace of all 8 concentration eigenvalues = 4
Scroll across to see the full diagram.
For N=8, NW=2 and three requested tapers, W=.25. The concentration ratios are approximately .99998385,.99886186,.97145189 and the full operator trace is4. The leading taper is symmetric and positive; the next is antisymmetric. Their unit norms and mutual orthogonality are separate checks from their high concentration.

Compare this with the Generalized eigenvalue calculator for a matrix pair. Generic matrix eigenvalues do not build or interpret the time-band concentration operator.

Time-bandwidth product and frequency units

Enter NW, the product of sequence length and normalized half-bandwidth. The actual half-bandwidth is W=NW/N in cycles per sample, with the selected band extending from−W to W.

If samples are spaced Δt seconds apart, divide cycles-per-sample frequency by Δt to express it in hertz. NW is not itself a frequency in hertz, and keeping NW fixed while increasing N narrows the normalized band.

The sinc matrix encodes band energy

The quadratic form vᵀKv equals the energy of a unit-normalized finite sequence within the selected band. Its diagonal2W comes from integrating a constant frequency phase when the two time indices match.

Off-diagonal sinc terms describe interactions between different samples. Solving the real symmetric eigenproblem orders the achievable concentration fractions, with orthogonal eigenvectors supplying the requested tapers.

Inspecting the eight-sample default

For N=8 and NW=2, the half-bandwidth is.25 cycles per sample. The first three concentration ratios exceed.97, showing that these orthogonal vectors place nearly all their energy inside the band.

The first vector is symmetric and the second antisymmetric, but those shapes do not define concentration by themselves. Their Fourier energy fractions come from the eigenvalues. The full trace equals2NW=4, including the five eigenvalues not displayed when only three tapers are requested.

Normalization and sign are conventions

Every returned taper has squared sample sum one. This Euclidean normalization makes eigenvalue fractions and mutual orthogonality straightforward to check against another implementation.

Negating a taper does not change its concentration or spectral magnitude. The prototype chooses the sign so its first resolved nonzero entry is positive. Comparing raw vector entries without allowing a sign flip can falsely suggest disagreement between correct implementations.

Near-degenerate eigenspaces need careful comparison

When concentration eigenvalues are extremely close, numerical eigensolvers can return different orthonormal bases of essentially the same subspace. Small perturbations can change individual vectors more than their shared concentrated span.

Compare eigenvalues, residuals, orthogonality and subspace projections in that regime. The displayed Jacobi residual checks Kv−λv for the computed pair; it does not establish that individual rounded vector entries are uniquely meaningful.

Tapers are ingredients rather than a spectrum

Multitaper spectral estimation uses several DPSS windows to form and combine spectral estimates from measured data. This calculator constructs the windows and concentration diagnostics only.

Choosing a number of tapers involves a bias-variance and leakage tradeoff tied to the analysis task. The rough scale2NW is useful context, but the page does not automatically select a statistically optimal count or compute a power spectral density.

A few questions, answered

Is NW measured in hertz?

No. It is length times half-bandwidth in cycles per sample.

Why does another package negate a taper?

Eigenvector sign is arbitrary and does not change concentration.

Should the displayed eigenvalues sum to2NW?

Only the complete set does. A requested subset generally has a smaller sum.

Does this calculate a power spectrum?

No. It returns tapers and concentration ratios used as ingredients in spectral analysis.

Find your calculator

Start typing to explore the library.