random value selector with associated probability package
Project description
Description: ..\randSelector\randSelector\rand_selector module contains a function select_rand_item, that can select a random a item from a data set with its associated probability
pip instalattion: give the following command to add the module to your environment: 'pip install randSelector'
get access to the functions by adding the following to the top of your script: 'from randSelector import rand_selector'
to test, run command: select_rand_item( ((1, 0.6), (3, 0.4))), seed_num=10) from any script
OR
run ..\MsAssesment\randSelector\unitTest\test_rand_selector.py from the zipped folder after installing pip package above
this will unit test the module.Also, additional tests can be written to extend test covergage
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file randSelector-1.0.2.tar.gz.
File metadata
- Download URL: randSelector-1.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5df54856b9f5e2d3b0a7f47c35faeed0b56ebc1ca520c12d05bf90f2c39bcab
|
|
| MD5 |
bff67529591da6ddaab34f9e8dd8152a
|
|
| BLAKE2b-256 |
ac186a8a086332df295d21b35324ed8b806cb8a60350f9a454c78717cf01f21f
|
File details
Details for the file randSelector-1.0.2-py3-none-any.whl.
File metadata
- Download URL: randSelector-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fea75532fd8137462b150d21d6ea7a1b0d645c0fa3e3ff3b09e4bb460ad331bc
|
|
| MD5 |
111dc8ebef2bb49edb5e5ca7243f3a6d
|
|
| BLAKE2b-256 |
62d3f2e30e2870187bb484364ff3c3bdb4065c9194cc7d9a2d661cca85e68d40
|