Tenokonda Low Discrepancy Sequences
Project description
tklds
In this repository, we present the ‘tkrg-a-ap5’ direction numbers for generating Sobol sequences satisfying properties A and A’ as well as a comprehensive set of benchmark test functions from literature that can be used for evaluating low discrepancy sequence quality. The repository accompanies the paper:
The set of direction numbers tkrg-a-ap5 satisfying property A for all 50,000 dimensions and A’ for five adjacent
dimensions can be found in tklds/direction_numbers/tkrgsobol_a_ap5_50000
Quasi Monte Carlo Methods
Monte Carlo methods lie at the heart of many numeric computing tasks ranging from modelling how high velocity ions impinge on an atomic lattice to the pricing of a financial instruments such as stocks and options. While being generic and scaling independently of problem dimension, practical applications of Monte-Carlo suffers from the slow convergence rate imposed by the O(N-1/2) for N samples, thus requiring large numbers of simulations to achieve a desired level of accuracy. Quasi-Monte Carlo integration replaces the pseudo-random sequences with deterministic ‘low discrepancy’ sequences having greater uniformity and produce error convergence rates of order O(N-1) to O(N-3/2) on suitable problem types. While the asymptotically faster convergence rates of QMC methods may at first be appealing, the use of QMC and low discrepancy sequences carry with them a set of caveats and pathologies that if not addressed are likely to lead to incorrect results when applied in practice.
Installing
Install the project from pypi using pip install tklds
or by cloning this repository and them:
Install the requirements using python -m pip install -r requirements.txt
Install the project by calling python -m pip install tklds from the current folder.
Quickstart
To generate uniform floating point values in the range [0,1] use the following snippet:
>>> from tklds.interface.generators import generate_lds_rvs >>> from tklds.constant import SequenceNum >>> u = generate_lds_rvs(sequence=SequenceNum.TKRG_A_AP5, n=1024, d=5, skip=0)
Here we generate a total of n=1024 points with each point having d=5 dimensions using the
sequence generated by the sequence_name=tkrg-a-ap5 direction numbers, without skipping the first point
(skip=0).
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 tklds-0.0.9.tar.gz.
File metadata
- Download URL: tklds-0.0.9.tar.gz
- Upload date:
- Size: 5.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d80d730bc91e32d6312a0a1443ec6a883ae0e72ff0722d893cda46df3d23b3cb
|
|
| MD5 |
b0a372e4ec1b02cf5628ae7cd7759db6
|
|
| BLAKE2b-256 |
d8c6b6bac30e82d21b28dee34b6617c47043aa081d723181ff6a4904f6b7e9d0
|
Provenance
The following attestation bundles were made for tklds-0.0.9.tar.gz:
Publisher:
workflow.yml on TENOKONDA/tklds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tklds-0.0.9.tar.gz -
Subject digest:
d80d730bc91e32d6312a0a1443ec6a883ae0e72ff0722d893cda46df3d23b3cb - Sigstore transparency entry: 256464222
- Sigstore integration time:
-
Permalink:
TENOKONDA/tklds@9e407362aade45ef6ade17209827929a834140da -
Branch / Tag:
refs/tags/v0.0.9_ - Owner: https://github.com/TENOKONDA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@9e407362aade45ef6ade17209827929a834140da -
Trigger Event:
push
-
Statement type:
File details
Details for the file tklds-0.0.9-py3-none-any.whl.
File metadata
- Download URL: tklds-0.0.9-py3-none-any.whl
- Upload date:
- Size: 5.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74622102c0107c1e5f97fb063255ee558ccec2c64ae4d2d77f9e7059398e48ab
|
|
| MD5 |
79ffaf67ff530d28cb8061834c8a8cca
|
|
| BLAKE2b-256 |
1b88ebd09f95a69841e9a2bca31b96caf0f01ee0bdab543926ea08aa6fe53679
|
Provenance
The following attestation bundles were made for tklds-0.0.9-py3-none-any.whl:
Publisher:
workflow.yml on TENOKONDA/tklds
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tklds-0.0.9-py3-none-any.whl -
Subject digest:
74622102c0107c1e5f97fb063255ee558ccec2c64ae4d2d77f9e7059398e48ab - Sigstore transparency entry: 256464233
- Sigstore integration time:
-
Permalink:
TENOKONDA/tklds@9e407362aade45ef6ade17209827929a834140da -
Branch / Tag:
refs/tags/v0.0.9_ - Owner: https://github.com/TENOKONDA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@9e407362aade45ef6ade17209827929a834140da -
Trigger Event:
push
-
Statement type: