Skip to content

Data Smoothing

Data smoothing reduces noise in measurements by averaging adjacent data points. This is useful for noisy measurements or when you need cleaner traces for documentation.

  1. Tap the screen to open the menu
  2. Navigate to DISPLAY > SMOOTH
  3. Select a smoothing level (1-8) or OFF

The smooth factor controls how many adjacent points are averaged:

LevelPoints AveragedEffect
OFFNoneRaw data, maximum detail
13Light smoothing
25Moderate smoothing
39Good noise reduction
417Heavy smoothing
5-833+Very heavy smoothing

The firmware smooths complex S-parameter data (real and imaginary parts independently) by making multiple passes over the sweep points. Each pass applies a 3-point weighted average to adjacent points.

The smooth factor controls how many passes are applied:

FactorPassesEffective Window
11 pass3 points
22 passes~5 points
34 passes~9 points
48 passes~17 points
516 passes~33 points
632 passes~65 points
764 passes~100+ points
8128 passesNearly flat

The formula is 2^(factor-1) passes. At factor 7-8 on a 101-point sweep, the smoothing window approaches the full sweep — effectively flattening the trace.

The firmware supports two averaging methods, toggled via CONFIG > SMOOTH MODE:

Arithmetic Mean (default, VNA_MODE_SMOOTH enabled):

  • Formula: (v_prev + 2*v_current + v_next) / 4
  • Weighted toward the center point
  • Best for most measurements — linear averaging preserves amplitude relationships

Geometric Mean (VNA_MODE_SMOOTH disabled):

  • Uses cube root: cbrt(v_prev * v_current * v_next)
  • Better preserves multiplicative relationships (dB-scale quantities)
  • Useful when you want smoothing that behaves linearly in log scale

The first and last sweep points are not smoothed — they lack a neighbor on one side, and smoothing them would introduce a phase shift at the sweep edges. This means you may see slightly more noise at the extreme start and end of a sweep compared to the middle.

Smoothing effectiveness depends on how many sweep points you have:

DeviceMax PointsPractical Max Factor
NanoVNA-H1014-5
NanoVNA-H44016-7

With 101 points, factor 5 (16 passes) already averages over roughly a third of the sweep. With 401 points, you have four times the resolution budget — factor 6 still preserves meaningful detail.

Terminal window
# Set smoothing factor (0-8)
smooth 0 # Smoothing off
smooth 1 # Light smoothing
smooth 3 # Moderate smoothing
smooth 5 # Heavy smoothing
smooth 8 # Maximum smoothing
# Query current setting
smooth
  • Noisy environments: EMI or vibration causing measurement noise
  • High frequency measurements: Above 500 MHz where noise increases
  • Documentation: Clean traces for reports or screenshots
  • Trend analysis: When you need to see overall shape, not fine detail
  • Sharp resonances: Smoothing can hide narrow peaks
  • Calibration: Always calibrate with smoothing OFF
  • Crystal measurements: Need to see exact peak location
  • Filter ripple: Smoothing hides passband ripple

Both smoothing and bandwidth settings affect noise, but differently:

SettingEffectTrade-off
SmoothingAverages displayed pointsHides sharp features
BandwidthAverages at each point during acquisitionSlower sweep

For best results:

  1. First, increase bandwidth (reduce IF bandwidth) for lower noise during measurement
  2. Then apply smoothing if additional noise reduction is needed

Measuring a noisy antenna:

  1. Set bandwidth to 100 Hz for low noise acquisition
  2. Run the sweep
  3. If trace is still noisy, enable smoothing level 2-3
  4. Adjust smoothing level until trace is clean but details remain visible

When smoothing is enabled, an indicator appears in the status area showing the current smooth factor.