Skip to main content

Resampling

Overview

This test metric changes the sample rate, number of samples taken per second, of an existing signal with either a desired number of data points in the resampled signal or a desired time step (time between data points)

Required Inputs

  • Time History Signal
  • Resampling method
    • Time Step or Number of Data Points
  • Value for desired resampling method

Calculation

  1. Signal's time units are all converted to seconds and data units are all converted to be harmonious
  2. Checks if signal's time values are increasing, if not error will arise
  3. Applies time step to signal or calculates time step based on number of points desired in signal
    • Time step is calculated by dividing total time range by the number of desired data points within the signal minus one (to account for correct conversion of time intervals to sampled data points)
  4. First and last points of signal are adjusted to the nearest multiple of the calculated time step to ensure signal spans entire time range
  5. Time array is created with evenly spaced time points for resampled signal
  6. The time array (created in Step 5) is used to interpolate signal data
  7. New data and time array is used to create a resampled signal

Resampling Data Example

Before resample

Before signal is resampled

After resample

After signal is resampled to include 100 data points