java.lang.Object
uk.ac.diamond.scisoft.analysis.dataset.function.SavitzkyGolay

public class SavitzkyGolay extends Object
Implementation of the Savitzky Golay filter algorithm.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.january.dataset.Dataset
    filter(org.eclipse.january.dataset.IDataset data, int window, int poly)
     
    static org.eclipse.january.dataset.Dataset
    filter(org.eclipse.january.dataset.IDataset data, int window, int poly, int deriv)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 filtered
      window - 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 filtered
      window - 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