Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for Savitzky Golay filter #297

Open
bvenn opened this issue Sep 21, 2023 · 0 comments
Open

Documentation for Savitzky Golay filter #297

bvenn opened this issue Sep 21, 2023 · 0 comments
Labels
Difficulty: Advanced Hackathon projects with beginner difficulty FsLab Hackathon 2023 Implementation projects for the 2023 FsLab Hackathon Status: Available

Comments

@bvenn
Copy link
Member

bvenn commented Sep 21, 2023

Description

A proper discription for the usage of Savitzky Golay filter is missing in the official documentation. The example looks good, but usage, parameter description, and parameter usage should be explained. Use [1] and [2] as inspiration. [1] should be referenced in the docs. Requires knowledge regarding polynomial regression.

  • Of course you can also start writing the tutorial/documentation in this issue/markdown files/scripts and afterwards we try to incorporate into the library.

References

  • [1] https://fslab.org/blog/posts/savitzky-golay-temperature.html#Savitzky-Golay-filter
  • [2]
    /// Smooth (and optionally differentiate) data with a Savitzky-Golay filter.
    /// The Savitzky-Golay filter is a type of low-pass filter and removes high frequency noise from data.
    // Parameters
    // ----------
    // data : array_like, shape (N,)
    // the values of the time history of the signal.
    // windowSize : int
    // the length of the window. Must be an odd integer number.
    // order : int
    // the order of the polynomial used in the filtering.
    // Must be less then `windowSize` - 1.
    // deriv: int
    // the order of the derivative to compute (default = 0 means only smoothing)
    //
    // The Savitzky-Golay is a type of low-pass filter, particularly suited for smoothing noisy data.
    // The main idea behind this approach is to make for each point a least-square fit with a
    // polynomial of high order over a odd-sized window centered at the point.
    let savitzkyGolay (windowSize:int) (order:int) deriv rate (data:float[]) =
@bvenn bvenn added Difficulty: Advanced Hackathon projects with beginner difficulty FsLab Hackathon 2023 Implementation projects for the 2023 FsLab Hackathon Status: Available labels Sep 21, 2023
@bvenn bvenn moved this to Status: Available in FsLab Hackathon 2023 Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Advanced Hackathon projects with beginner difficulty FsLab Hackathon 2023 Implementation projects for the 2023 FsLab Hackathon Status: Available
Projects
Status: Status: Available
Development

No branches or pull requests

1 participant