Giter Site home page Giter Site logo

Comments (3)

raphaelvallat avatar raphaelvallat commented on May 20, 2024

Hi,

I think that it doesn't really make sense to calculate the entropy or fractal dimension on such small arrays. That said, I haven't formally tested what should be the minimum sample size for these functions. It would be helpful to add a more explicit error message when the sample size is too low.

Thanks,
Raphael

from antropy.

FirefoxMetzger avatar FirefoxMetzger commented on May 20, 2024

I just ran into this as well when benchmarking the old and the new kernel. The old kernel works fine from 6 samples onwards for order=2. My guess is that the old kernel accessed the samples in blocks of a certain length (perhaps 2*(order+1)?) and thus needs at least one window/block worth of data to operate.

The new kernel doesn't have this limitation and will work happily with any array length. That said, @raphaelvallat comment still stands: sample_entropy is not reliable on small sample sizes so results should be taken with a grain of salt.

from antropy.

Related Issues (13)

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.