semvec/pypi-packages huggingface dataset:
pyidd 0.3.1
Identify the Distribution of Data
License: MIT

# PyIDD
Identify the Distribution of your Data <br />
This package helps you for identifing the distribution of your data. For example if you want to know whether your data follow Normal distribution, you can use this package!

## Installation

```
pip install pyidd
```

## Usage
```python
import pyidd
import statsmodels.api as sm

# Load sample dataset (data is an one dimensional array)
data = sm.datasets.elnino.load_pandas().data.set_index('YEAR').values.ravel()

# verbose=0 means silent while fitting and verbose=1 means say anything you do while fitting
p = pyidd.PyIDD(verbose=1)
p.fit(data)

# After fitting, you can get distribution sorted by Sum of Squered Error that fit your data, so the first distribution is the distribution that is closer to your data
p.get_distributions()

# You can also plot distributions and your data to see this visualy. top=10 means that you want to plot top 10 distributions that match your data
p.plot(top=10)

```
<img src="examples/test.png" />

## Distributions
We use almost all scipy.stats continiuse distributions (Notics: The distributions that can not fit to your data get ignored). These distributions are listed below:
- alpha
- anglit
- arcsine
- argus
- beta
- betaprime
- bradford
- burr
- burr12
- cauchy
- chi
- chi2
- cosine
- crystalball
- dgamma
- dweibull
- erlang
- expon
- exponnorm
- exponweib
- exponpow
- f
- fatiguelife
- fisk
- foldcauchy
- foldnorm
- frechet_r
- frechet_l
- genlogistic
- gennorm
- genpareto
- genexpon
- genextreme
- gausshyper
- gamma
- gengamma
- genhalflogistic
- geninvgauss
- gilbrat
- gompertz
- gumbel_r
- gumbel_l
- halfcauchy
- halflogistic
- halfnorm
- halfgennorm
- hypsecant
- invgamma
- invgauss
- invweibull
- johnsonsb
- johnsonsu
- kappa4
- kappa3
- ksone
- kstwo
- kstwobign
- laplace
- levy
- levy_l
- logistic
- loggamma
- loglaplace
- lognorm
- loguniform
- lomax
- maxwell
- mielke
- moyal
- nakagami
- ncx2
- ncf
- nct
- norm
- norminvgauss
- pareto
- pearson3
- powerlaw
- powerlognorm
- powernorm
- rdist
- rayleigh
- rice
- recipinvgauss
- semicircular
- skewnorm
- t
- trapz
- triang
- truncexpon
- truncnorm
- tukeylambda
- uniform
- vonmises
- vonmises_line
- wald
- weibull_min
- weibull_max
- wrapcauchy
eightbitdo-zero2 0.1.3
Python code to use thev 8bitdo zero2 controller with a Raspberry Pi
License: MIT
Requires Python: >=3.6
Keywords: 8bitdo,raspberry Pi

# 8bitdo zero2

Python code to use the [8bitdo zero2](https://www.8bitdo.com/zero2/) controller with a Raspberry Pi.

<img src="https://i.gyazo.com/7fee2bfe9c81504cda3ec549eb56601f.jpg)" style="max-width: 450px">

# How to use

## Installation


```bash
$ pip install eightbitdo-zero2 
```
## Usage example

```python
from gpiozero import LED
from eightbitdo_zero2 import EightBitDoZero2

# led
red = LED(17)
blue = LED(10)


def main():
    # Initialize controller
    controller = EightBitDoZero2(
        on_y=red.on,
        off_y=red.off,
        on_a=blue.on,
        off_a=blue.off,
    )

    # Start listen
    controller.listen()


if __name__ == "__main__":
    main()
```

There are more example code in [examples](https://github.com/kawamataryo/8bitdo_zero2/tree/master/examples).

## Options

Controller initialize options.

|name|type|default|detail|
|---|---|---|---|
|device_path|string|"/dev/input/js0"|File path to which device is connected.|
|debug|boolean|False|Debug mode setting. When True, The entered command is displayed on STDOUT.|
|on_<button_name>|function|lambda: None|Action when the button is pressed.|
|off_<button_name>|function|lambda: None|Action when the button is Released.|
 
# License

This software is released under the MIT License, see LICENSE.