Skip to contents

Upsamples by an integer factor with interpolation. This is a convenience wrapper around resample() with target_rate = sr * factor.

Usage

interpolate(
  x,
  factor,
  method = c("linear", "spline"),
  output_assay = "interpolated"
)

Arguments

x

A PhysioExperiment object.

factor

Integer interpolation factor.

method

Interpolation method: "linear" or "spline".

output_assay

Name for the output assay.

Value

A new PhysioExperiment object with sampling rate equal to the original rate multiplied by factor. The time dimension is increased accordingly.

References

Crochiere, R.E. & Rabiner, L.R. (1983). "Multirate Digital Signal Processing." Prentice Hall.

See also

resample() for arbitrary-rate resampling, decimate() for integer-factor downsampling.