Package adams.data.utils
Class SavitzkyGolay
- java.lang.Object
-
- adams.data.utils.SavitzkyGolay
-
public class SavitzkyGolay extends Object
A helper class for Savitzky-Golay.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description SavitzkyGolay()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]
determineCoefficients(int numLeft, int numRight, int polyOrder, int derOrder)
Determines the coefficients for the smoothing.static double[]
determineCoefficients(int numLeft, int numRight, int polyOrder, int derOrder, boolean debug)
Determines the coefficients for the smoothing, with optional debugging output.static TechnicalInformation
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
-
-
-
Method Detail
-
determineCoefficients
public static double[] determineCoefficients(int numLeft, int numRight, int polyOrder, int derOrder)
Determines the coefficients for the smoothing.- Parameters:
numLeft
- the number of points to the leftnumRight
- the number of points to the rightpolyOrder
- the polynomial orderderOrder
- the derivative order- Returns:
- the coefficients
-
determineCoefficients
public static double[] determineCoefficients(int numLeft, int numRight, int polyOrder, int derOrder, boolean debug)
Determines the coefficients for the smoothing, with optional debugging output.- Parameters:
numLeft
- the number of points to the leftnumRight
- the number of points to the rightpolyOrder
- the polynomial orderderOrder
- the derivative orderdebug
- whether to output debugging information- Returns:
- the coefficients
-
getTechnicalInformation
public static TechnicalInformation getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Returns:
- the technical information about this class
-
-