Metadata-Version: 2.1
Name: escalator-nyandams
Version: 0.0.5
Summary: A small package to detect stagnation in the values of a signal, sort of horizontal steps
Home-page: https://github.com/Nyandams/step_detection
Author: Damien Lecha
Author-email: lecha.damien@gmail.com
License: UNKNOWN
Description: [![Build Status](https://travis-ci.com/Nyandams/step_detection.svg?branch=master)](https://travis-ci.com/Nyandams/step_detection)
        # Escalator
        
        A small python package to detect stagnation in the values of a signal, sort of **horizontal steps**.
        
        ## Installation
        ```
        pip install escalator-nyandams
        ```
        
        ## Example
        ```python
        import escalator-nyandams as esc
        
        signal: list = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 30, 31, 29, 30, 30, 29, 32, 45, 70, 70, 71, 69, 72, 70, 70, 70, 75, 78, 85, 85, 90, 95, 100, 100, 100, 101, 100, 101, 100, 100, 100, 99, 100, 100]
        cost = esc.DistanceMedianCost()
        algo = esc.EscalatorRush(cost=cost, min_step_size=3, max_dist=2, jump=1).fit(signal)
        stair_steps = algo.predict()
        #  [(0, 9, 0.0), (11, 17, 29.833333333333332), (19, 26, 70.28571428571429), (33, 42, 100.22222222222223)]
        ```
        You can then plot easily the result with your favorite package.
        
        ![Example 1 of the result](https://raw.githubusercontent.com/Nyandams/step_detection/master/images/plat1.png)
        ![Example 2 of the result](https://raw.githubusercontent.com/Nyandams/step_detection/master/images/plat2.png)
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
