dcrg.sig

Functions

dcrg.sig.filterSignal

dcrg.sig.filterSignal(yi, dt, fmax)

Filter Signal using a lowpass filter Created by : R Cheung Contact: r.c.m.cheung@bristol.ac.uk Date: Oct 2019

dcrg.sig.psd

dcrg.sig.psd(y, Fs, opts)

dcrg.sig.refinePeaks

dcrg.sig.refinePeaks(idx, x, y)

REFINEPEAKS refine local minima / maxima by fitting cubic splines [xi,yi] = refinePeaks(idx,x,y) Inputs:

  • idx: Index of local maxima or minima in the signal defined by x

and y. - x: x axis of signal - y: y axis of signal

Outputs:
  • xi: minima/maxima locations on x axis

  • yi: minima/maxima amplitudes

author: Fintan Healy email:fintan.healy@bristol.ac.uk date: 12/11/2024

dcrg.sig.sgolayfilter

dcrg.sig.sgolayfilter(y, order, framelen, returnorders, dt)

SGOLAYFILTER applies a Savitzky Golay Filter to a signal, and can also be used to estimate derivatives https://en.wikipedia.org/wiki/Savitzky%E2%80%93Golay_filter Inputs: - y : signal to be filtered - order : order of sgolay filter to be applied - framelen : size of frame which is convoluted along the signal - return order : a list of which derivatives to return 0 being the

filtered signal, 1 being the first derivative etc…

  • dt : the sampling period of y

Created by: Fintan Healy email: fintan.healy@bristol.ac.uk Date: 27/11/2022