CalcWorldHub
Free online calculator · no signup

FIR rational rate conversion samples calculator

Convert an actual short sample record through zero insertion, an entered FIR and downsampling.

4,000 tools
FIR rational rate conversion samples calculator — Uniform samples (signal units), Intermediate-rate FIR coefficients, Interpolation factor and calculation method
FIR rational rate conversion samples calculator: inputs and calculation method.

How to use this calculator

Convert an actual short sample record through zero insertion, an entered FIR and downsampling.

  1. Enter Uniform samples (signal units), Intermediate-rate FIR coefficients, Interpolation factor, Decimation factor. 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

FIR rational rate conversion samples explained

Convert an actual short sample record through zero insertion, an entered FIR and downsampling.

Converted output count3samples
Converted output count: 3 samples in the worked scenario.

How the calculation works

y[m]=Σi x[i] h[mD−iU], retaining indices from zero through (N−1)U+M−1; out-of-range h is zero.

This is the same mathematical operation as upfirdn. The FIR must already meet anti-imaging and anti-aliasing requirements; no automatic gain correction or delay trimming is hidden.

Set up the calculation

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.
taps — Intermediate-rate FIR coefficients
Filter coefficients defined at the upsampled clock; gain is applied exactly as entered. Use comma-separated values in the stated order.
up — Interpolation factor
Zero-insertion factor. Enter a whole number.
down — Decimation factor
Keep every down-th filtered sample starting at index zero. Enter a whole number.

Limits of this model

At most 64 samples and taps; inadequate FIR rejection causes spectral images or aliasing.

Check this example

Uniform samples (signal units) = [1, 2, 3, 4]; Intermediate-rate FIR coefficients = [0.5, 1, 0.5]; Interpolation factor = 2; Decimation factor = 3.

  • Converted output count: 3 samples
  • Converted sample 0: 0.5 signal units
  • Converted sample 1: 2 signal units
  • Converted sample 2: 3.5 signal units

Four source samples are interpolated by two and decimated by three using the triangular intermediate-clock FIR [0.5,1,0.5].

Reading the outputs

Output count includes the finite FIR tail; every retained output is returned in chronological order.

Frequently asked questions

Does this design the anti-alias filter?

No. Enter a suitable intermediate-rate FIR.

Why include output after the last source sample?

The finite convolution has a nonzero filter tail.

Is the first output delay compensated?

No. The index origin remains zero.

How do I use the FIR rational rate conversion samples calculator?

Enter Uniform samples (signal units), Intermediate-rate FIR coefficients, Interpolation factor, Decimation factor. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of FIR rational rate conversion samples?

Uniform samples (signal units) = [1, 2, 3, 4]; Intermediate-rate FIR coefficients = [0.5, 1, 0.5]; Interpolation factor = 2; Decimation factor = 3. Converted output count: 3 samples Converted sample 0: 0.5 signal units Converted sample 1: 2 signal units Converted sample 2: 3.5 signal units Four source samples are interpolated by two and decimated by three using the triangular intermediate-clock FIR [0.5,1,0.5].