sampen | Partial Python port of PhysioNet SampEn C code

 by   bergantine Python Version: 0.0.17 License: GPL-2.0

kandi X-RAY | sampen Summary

kandi X-RAY | sampen Summary

sampen is a Python library. sampen has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can install using 'pip install sampen' or download it from GitHub, PyPI.

Partial Python port of PhysioNet SampEn C code
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              sampen has a low active ecosystem.
              It has 8 star(s) with 8 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 1 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of sampen is 0.0.17

            kandi-Quality Quality

              sampen has no bugs reported.

            kandi-Security Security

              sampen has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              sampen is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              sampen releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed sampen and discovered the below as its top functions. This is intended to give you an instant insight into sampen implemented functionality, and help decide if they suit your requirements.
            • Calculate the amplitude of a time series .
            • Normalize data .
            Get all kandi verified functions for this library.

            sampen Key Features

            No Key Features are available at this moment for sampen.

            sampen Examples and Code Snippets

            No Code Snippets are available at this moment for sampen.

            Community Discussions

            QUESTION

            What is the terminology for reducing inputs to only distinct elements to speed computation?
            Asked 2020-Jun-19 at 10:00

            Is there a term for leveraging the fact that data is comprised of a few much-repeated values to speed computation?

            As an example when trying to compute Sample Entropy on a long discrete sequence (Length=64.000.000.000, Distinct elements = 11, Length of substring=3) I was finding the running time too long (over 10 minutes). I realised that I should be able to make use of the relatively few distinct elements to speed up computation but was unable to find any literature relating to doing this (I suspect because I don't know what to Google).

            The algorithm for Sample Entropy involves counting the pairs of substrings that are within a certain tolerance. This was the computationally expensive aspect of the algorithm O(n^2). By taking only the distinct substrings (of which there were at most 1331) I was able to find the pairs of distinct substrings within the tolerance, I then used the counts of each distinct substring to find the total number of pairs of (non-distinct) substrings that are within a certain tolerance. This method substantially sped up my computation.

            Do algorithms that make use of the property of relatively few, much-repeated elements have a specific terminology.

            ...

            ANSWER

            Answered 2020-Jun-19 at 10:00

            It's a broad concept with several related terms.

            A common, closely related term is Memoization, wherein the results of computing a subproblem for different inputs are stored, and reused when a previously-seen input is re-encountered. That's slightly different from what you're doing here, since memoization is a form of lazy evaluation where values are recognized opportunistically rather than the code performing an up-front exhaustive enumeration of the inputs which will be processed.

            Materialization is also worth mentioning. It's encountered in the context of databases, and refers to the results of a query (a.k.a. tabular processing including possible filtering and/or reduction) being stored for reuse. The active concerns with materialization are largely around long-term considerations like dynamic updates, so it's not a perfect match for a run-and-forget algorithm.

            Speaking of 'dynamic', one could also maybe describe this as a form of dynamic programming, with a problem solved by exhaustively enumerating and solving a sequence of subproblems. In dynamic programming, though, one expects those subproblems to have a more regular and inductive form, so I think that one's a stretch.

            I would describe the precise strategy here as a sort of "eager memoization", to contrast with the lazy-evaluation assumption normally inherent with memoization.

            Source https://stackoverflow.com/questions/62467482

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install sampen

            You can install using 'pip install sampen' or download it from GitHub, PyPI.
            You can use sampen like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install sampen

          • CLONE
          • HTTPS

            https://github.com/bergantine/sampen.git

          • CLI

            gh repo clone bergantine/sampen

          • sshUrl

            git@github.com:bergantine/sampen.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link