public class SavitzkyGolay
extends java.lang.Object

| Constructor and Description |
|---|
SavitzkyGolay() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
savgol_filter(double[] x,
int windowLength,
int polyOrder)
Applies a Savitzky-Golay filter to an array (smoothing, derivative=0).
|
double[] |
savgol_filter(double[] x,
int windowLength,
int polyOrder,
int deriv,
double delta)
Applies a Savitzky-Golay filter to an array.
|
public double[] savgol_filter(double[] x,
int windowLength,
int polyOrder,
int deriv,
double delta)
x - The data to be filtered.windowLength - The length of the filter window (i.e., the number of
coefficients). window_length must be a positive odd
integer.polyOrder - The order of the polynomial used to fit the samples.
polyorder must be less than window_length.deriv - The order of the derivative to compute. This must be a
non-negative integer. The default is 0, which means to
filter the data without differentiating.delta - The spacing of the samples to which the data will be
applied. This is only used if deriv > 0. Default is 1.0.public double[] savgol_filter(double[] x,
int windowLength,
int polyOrder)
x - The data to be filtered.windowLength - The length of the filter window.polyOrder - The order of the polynomial.