Class SavitzkyGolay
java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.SavitzkyGolay
Implementation of the Savitzky Golay filter algorithm.
- See Also:
-
Method Summary
-
Method Details
-
filter
public static org.eclipse.january.dataset.Dataset filter(org.eclipse.january.dataset.IDataset data, int window, int poly) - Parameters:
data- Dataset that will be filteredwindow- The length of the filter window (i.e. the number of coefficients). Must be a positive odd integer.poly- The order of the polynomial used to fit the samples. Must be less than window.- Returns:
- Filtered dataset
-
filter
public static org.eclipse.january.dataset.Dataset filter(org.eclipse.january.dataset.IDataset data, int window, int poly, int deriv) - Parameters:
data- Dataset that will be filteredwindow- The length of the filter window (i.e. the number of coefficients). Must be a positive odd integer.poly- The order of the polynomial used to fit the samples. Must be less than window.deriv- The order of the derivative to compute. Must be a non-negative integer. Use zero if no derivative is required.- Returns:
- Filtered dataset
-