Coder Social home page Coder Social logo

Comments (3)

LegrandNico avatar LegrandNico commented on May 21, 2024

Hi @ryobg , thank you for pointing this out, this kind of feedback is really helpful for developing the library 👍

These are all good points, I will work on a PR to add some fixes for that. Regarding the wavelet approach, this is probably an issue in itself. Do you have papers or toolbox that document that as a starting point?

from systole.

ryobg avatar ryobg commented on May 21, 2024

Heya, wrt to the wavelets:

I have checked out few articles:

But there are many others which are behind a paywall. My non-physiology view says that the ability to look at the temporal changes of cycles over time is a good addition. It seems, many articles agrees on that. The difficulty is being to setup the proper transforms of the mother wavelet (Daubechies?). I'm currently investigating some wavelet libs in python, like scipy.signal.cwt and PyWavelets.

I'm sorry I'm unable to help here.

from systole.

ryobg avatar ryobg commented on May 21, 2024

I'm having some barely noticeable success with a code along the lines of:

import pywt
wavelet = 'morl'
periods = [2.5, 5, 10, 20, 40, 80, 160, 320]
scales = pywt.frequency2scale (wavelet, 1 / numpy.array (periods))
_, ax = plt.subplots (figsize = (20, 7))
ax.set_ylabel ("Frequency (s)")
ax.set_xlabel ("Time (minutes)")
coef, _ = pywt.cwt (ibi, scales, wavelet)
ax.imshow (abs (coef), aspect = 'auto', interpolation = 'nearest',
        extent = [0, ibi.sum () / (1000*60), max (periods), min (periods)],
        vmax = abs (coef).max (), vmin = abs (coef).min ())  
plt.show () 

from systole.

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.