diff --git a/Makefile b/Makefile index 9cde04b..594fad5 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ testpypi-web: # install TestPyPi version testpypi-install: - python -m pip install --index-url https://test.pypi.org/simple/ --no-deps randvec + python -m pip install --index-url https://test.pypi.org/simple/ --no-deps pyrandvec # upload to PyPi (see ~/.pypirc for token) pypi-upload: @@ -36,7 +36,7 @@ pypi-web: # install PyPi version pypi-install: - python -m pip install randvec + python -m pip install pyrandvec install-local: pip install --editable . diff --git a/README.md b/README.md index 336a823..b2100d9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Random vectors with sum one +# Generate random vectors whose components sum up to one This Python3 module implements different approaches [1] to randomly and uniformly generate d-dimensional vectors whose components sum up to one. @@ -10,24 +10,24 @@ This Python3 module implements different approaches [1] to randomly and uniforml Run the following to install the module: ```bash -pip install randvec +pip install pyrandvec ``` ## Usage ```python -from randvec.methods import sample +from pyrandvec import sample # Generate 10 4-dimensional vectors with the simplex-method -sample(10, 4, method = "simplex") +sample(10, 4, method = 'simplex') # Generate 10 3-dimensional vectors with the trigonometric methdod with subsequent shuffling -sample(10, 3, method = "trigonometric", shuffle = True) +sample(10, 3, method = 'trigonometric', shuffle = True) ``` # Developing randvec -To install the **randvec** module along with the tools you need to develop and run test, run the following command in your *virtual environment* (virtualenv): +To install the **pyrandvec** module along with the tools you need to develop and run test, run the following command in your *virtual environment* (virtualenv): ```bash pip install -e .[dev] diff --git a/setup.py b/setup.py index a660a77..7f7d03d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name = 'pyrandvec', - version = '1.0.2', + version = '1.0.1', author = 'Jakob Bossek', author_email = 'j.bossek@gmail.com', description = 'Generate random vectors whose components sum up to one',