https://github.com/anyoptimization/pysampling
Sampling: Random, LHS, Sobol, Halton
https://github.com/anyoptimization/pysampling
Last synced: 10 months ago
JSON representation
Sampling: Random, LHS, Sobol, Halton
- Host: GitHub
- URL: https://github.com/anyoptimization/pysampling
- Owner: anyoptimization
- License: apache-2.0
- Created: 2019-02-04T19:36:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T13:53:03.000Z (over 4 years ago)
- Last Synced: 2025-04-06T23:13:05.981Z (10 months ago)
- Language: Python
- Homepage: https://www.egr.msu.edu/coinlab/blankjul/pysampling/
- Size: 594 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
pysampling
====================================================================
You can find the detailed documentation here: https://anyoptimization.com/projects/pysampling
|python| |license|
.. |python| image:: https://img.shields.io/badge/python-3.6-blue.svg
:alt: python 3.6
.. |license| image:: https://img.shields.io/badge/license-apache-orange.svg
:alt: license apache
:target: https://www.apache.org/licenses/LICENSE-2.0
Installation
============
The framework is available at the PyPi Repository:
.. code-block:: bash
pip install -U pysampling
Usage
=====
The method to be used for sampling using different algorithm must be
import from pysampling.sample. Here, we use Latin Hypercube Sampling to
generate 50 points in 2 dimensions.
.. code:: python
import matplotlib.pyplot as plt
from pysampling.sample import sample
X = sample("lhs", 50, 2)
plt.scatter(X[:, 0], X[:, 1], s=30, facecolors='none', edgecolors='r')
plt.show()
Contact
=======
Feel free to contact me if you have any question:
::
Julian Blank (blankjul [at] egr.msu.edu)
Michigan State University
Computational Optimization and Innovation Laboratory (COIN)
East Lansing, MI 48824, USA