CalcWorldHub
Free online calculator · no signup

Local Wiener noise shrinkage calculator

Adapt smoothing strength to local signal variance when an additive noise variance is known.

4,000 tools
Local Wiener noise shrinkage calculator — Uniform samples (signal units), Neighborhood length, Known noise variance (signal units squared) and calculation method
Local Wiener noise shrinkage calculator: inputs and calculation method.

How to use this calculator

Adapt smoothing strength to local signal variance when an additive noise variance is known.

  1. Enter Uniform samples (signal units), Neighborhood length, Known noise variance (signal units squared). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Local Wiener noise shrinkage explained

The local Wiener filter estimates a mean and variance inside each complete moving window, then shrinks its center sample toward that local mean according to the known noise variance. Only windows fully inside the supplied series produce outputs.

Middle denoised value3.9831signal units
Middle denoised value: 3.983057 signal units in the worked scenario.

Inputs, symbols, and units

x — Uniform samples (signal units)
Chronological real samples; use a comma-separated list in the same signal units. Use comma-separated values in the stated order.
width — Neighborhood length
Odd full neighborhood length. Enter a whole number.
noise — Known noise variance (signal units squared)
Nonnegative additive noise variance, not standard deviation.

Formula and method

μ=mean(window), v=mean((x−μ)²), y=μ+max(0,1−σnoise²/v)(xcenter−μ); use y=μ when v=0.

Flat neighborhoods shrink toward their means; high-contrast neighborhoods retain more of the central measurement. Only complete neighborhoods are processed.

A worked scenario

Uniform samples (signal units) = [1, 1.1, 0.9, 4, 4.2, 3.8, 4]; Neighborhood length = 3; Known noise variance (signal units squared) = 0.04.

  • Middle denoised value: 3.983057 signal units
  • Denoised sample 0: 1 signal units
  • Denoised sample 1: 0.921927 signal units
  • Denoised sample 2: 3.983057 signal units
  • Denoised sample 3: 4 signal units
  • Denoised sample 4: 4 signal units

The default record steps from roughly one to four with noise variance 0.04, allowing the shrinkage to respond differently near the edge.

Assumptions and edge cases

The local variance includes signal structure and is estimated from few samples. This is not a frequency-domain Wiener deconvolver.

Reading the outputs

The full valid denoised record is returned; the first result selects its middle sample for quick comparison.

Frequently asked questions

Why enter variance instead of RMS noise?

The gain compares two squared-amplitude quantities.

What happens with zero noise variance?

The central sample is retained, apart from an exactly constant neighborhood.

Will a sharp edge be preserved perfectly?

No. Small neighborhoods and noise estimates can still blur an edge.

How do I use the Local Wiener noise shrinkage calculator?

Enter Uniform samples (signal units), Neighborhood length, Known noise variance (signal units squared). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Local Wiener noise shrinkage?

Uniform samples (signal units) = [1, 1.1, 0.9, 4, 4.2, 3.8, 4]; Neighborhood length = 3; Known noise variance (signal units squared) = 0.04. Middle denoised value: 3.983057 signal units Denoised sample 0: 1 signal units Denoised sample 1: 0.921927 signal units Denoised sample 2: 3.983057 signal units Denoised sample 3: 4 signal units Denoised sample 4: 4 signal units The default record steps from roughly one to four with noise variance 0.04, allowing the shrinkage to respond differently near the edge.