Skip to contents

Smooths each row of a matrix using a Savitzky-Golay filter.

Usage

sg_smooth_cpp(x, window_size, order, deriv, n_cores = 1L)

Arguments

x

Matrix to smooth row-wise

window_size

Size of the filter window (must be odd)

order

Polynomial order

deriv

Derivative order (0=smooth, 1=first deriv, etc.)

n_cores

Number of cores to use