GithubHelp home page GithubHelp logo

Local maximum and local minimum by spline about pyhht HOT 7 CLOSED

 avatar commented on August 15, 2024
Local maximum and local minimum by spline

from pyhht.

Comments (7)

jaidevd avatar jaidevd commented on August 15, 2024

Yes, for signal that has been sampled at a very low frequency, the local extrema can be misleading. I'd be happy if you'd send a PR. But I don't fully understand. If we are working on extrema of the splines, how do we construct the splines in the first place, since we need local extrema on the raw data to build the upper and lower envelopes?

from pyhht.

 avatar commented on August 15, 2024

Hi, I mean that you can interpolate raw data by spline and interpolate the spline's extrema points for upper and lower envelopes.

here shows the difference between spline's local extrema and local extrema by index of array
http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html#d-interpolation-interp1d

from pyhht.

jaidevd avatar jaidevd commented on August 15, 2024

All right. So we just add more samples in the raw data by interpolating it, and then perform sifting on this data. Is that right?

from pyhht.

 avatar commented on August 15, 2024

No, adding more samples is needless, we can find exact extrema points on spline at x axis by first order derivatives' root and determine whether the points is maxima or minium by second order derivatives' sign(negative : maximum, positive : minimum)

http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.splder.html#scipy.interpolate.splder
http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.sproot.html#scipy.interpolate.sproot

from pyhht.

 avatar commented on August 15, 2024

but why there's several files for the same purpose? which one should I modify?

from pyhht.

 avatar commented on August 15, 2024

I sent pull request, please check

from pyhht.

jaidevd avatar jaidevd commented on August 15, 2024

Closing due to inactivity.

from pyhht.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.