https://github.com/cheind/monte-carlo-integration
Theory and implementation of Monte Carlo integration techniques
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (3.6%) to scientific vocabulary
Keywords
Repository
Theory and implementation of Monte Carlo integration techniques
Basic Info
Statistics
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Monte Carlo Integration
Theory and implementation of Monte Carlo integration in Python.
Theory
See docs/montecarlointegration.pdf for a write-up of my research notes.
Example
Here is an example using indicator functions.
```python import numpy as np
import mcintegration as mci
Indicator function for being inside a unit sphere in R^N
i = lambda x: np.sum(x**2, -1) <= 1.0
Area of unit circle in R^2
Acircle, erronesigma = mci.mcintegrate( i, lower=[-1.0] * 2, upper=[1.0] * 2, n=int(1e5), ) print(Acircle, erronesigma)
3.1438 0.00129
Volume of unit sphere in R^3
Vsphere, erronesigma = mci.mcintegrate( i, lower=[-1.0] * 3, upper=[1.0] * 3, n=int(1e5), ) print(Vsphere, erronesigma)
4.1735 0.00157
```
Owner
- Name: Christoph Heindl
- Login: cheind
- Kind: user
- Location: Austrian area
- Website: https://cheind.github.io/
- Repositories: 88
- Profile: https://github.com/cheind
I am a computer scientist working at the interface of perception, robotics and deep learning.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- black * development
- flake8 * development
- pytest * development
- attrs ==21.4.0 development
- black ==22.3.0 development
- click ==8.1.3 development
- cycler ==0.11.0 development
- flake8 ==4.0.1 development
- fonttools ==4.33.3 development
- iniconfig ==1.1.1 development
- kiwisolver ==1.4.3 development
- matplotlib ==3.5.2 development
- mccabe ==0.6.1 development
- mypy-extensions ==0.4.3 development
- numpy ==1.23.0 development
- packaging ==21.3 development
- pathspec ==0.9.0 development
- pillow ==9.1.1 development
- platformdirs ==2.5.2 development
- pluggy ==1.0.0 development
- py ==1.11.0 development
- pycodestyle ==2.8.0 development
- pyflakes ==2.4.0 development
- pyparsing ==3.0.9 development
- pytest ==7.1.2 development
- python-dateutil ==2.8.2 development
- six ==1.16.0 development
- tomli ==2.0.1 development
- typing-extensions ==4.2.0 development
- matplotlib *
- numpy *
- cycler ==0.11.0
- fonttools ==4.33.3
- kiwisolver ==1.4.3
- matplotlib ==3.5.2
- numpy ==1.23.0
- packaging ==21.3
- pillow ==9.1.1
- pyparsing ==3.0.9
- python-dateutil ==2.8.2
- six ==1.16.0