0.3.66 • Published 1 day ago

@thi.ng/lowdisc v0.3.66

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 day ago

lowdisc

npm version npm downloads Twitter Follow

This project is part of the @thi.ng/umbrella monorepo.

About

n-dimensional low-discrepancy sequence generators/iterators.

This package provides the following n-dimensional low-discrepancy sequence generators, partially based on the article The Unreasonable Effectiveness of Quasirandom Sequences by Martin Roberts.

Halton

Configurable basis for each dimension:

haltonND([2,3])

2D Halton(2,3) sequence

Kronecker

Configurable basis for each dimension:

kroneckerND([1 / 2 ** 0.5, 1 / 5 ** 0.5])

2D Kronecker sequence (Golden ratio)

R2 recurrence

Based on Kronecker with each dimension's base automatically derived from the Plastic number:

plasticND(2)

2D R2 recurrence sequence

Status

BETA - possibly breaking changes forthcoming

Search or submit any issues for this package

Related packages

  • @thi.ng/poisson - nD Stratified grid and Poisson-disc sampling w/ support for spatial density functions and custom PRNGs
  • @thi.ng/random - Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation

Installation

yarn add @thi.ng/lowdisc

ES module import:

<script type="module" src="https://cdn.skypack.dev/@thi.ng/lowdisc"></script>

Skypack documentation

For Node.js REPL:

# with flag only for < v16
node --experimental-repl-await

> const lowdisc = await import("@thi.ng/lowdisc");

Package sizes (gzipped, pre-treeshake): ESM: 502 bytes

Dependencies

API

Generated API docs

TODO

Authors

Karsten Schmidt

If this project contributes to an academic publication, please cite it as:

@misc{thing-lowdisc,
  title = "@thi.ng/lowdisc",
  author = "Karsten Schmidt",
  note = "https://thi.ng/lowdisc",
  year = 2020
}

License

© 2020 - 2021 Karsten Schmidt // Apache Software License 2.0

0.3.66

1 day ago

0.3.65

17 days ago

0.3.64

20 days ago

0.3.63

29 days ago

0.3.62

1 month ago

0.3.61

1 month ago

0.3.60

2 months ago

0.3.59

2 months ago

0.3.58

2 months ago

0.3.57

2 months ago

0.3.56

3 months ago

0.3.55

3 months ago

0.3.54

3 months ago

0.3.53

3 months ago

0.3.52

3 months ago

0.3.51

3 months ago

0.3.49

4 months ago

0.3.48

4 months ago

0.3.47

4 months ago

0.3.46

5 months ago

0.3.45

5 months ago

0.3.44

5 months ago

0.3.43

5 months ago

0.3.31

9 months ago

0.3.38

6 months ago

0.3.37

7 months ago

0.3.36

7 months ago

0.3.35

7 months ago

0.3.34

9 months ago

0.3.33

9 months ago

0.3.32

9 months ago

0.3.29

9 months ago

0.3.42

5 months ago

0.3.41

6 months ago

0.3.40

6 months ago

0.3.28

11 months ago

0.3.27

12 months ago

0.3.26

1 year ago

0.3.25

1 year ago

0.3.24

1 year ago

0.3.23

1 year ago

0.3.20

1 year ago

0.3.22

1 year ago

0.3.17

1 year ago

0.3.19

1 year ago

0.3.18

1 year ago

0.3.16

1 year ago

0.3.15

1 year ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.9

2 years ago

0.3.10

2 years ago

0.3.8

2 years ago

0.3.6

2 years ago

0.3.7

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.0

2 years ago

0.2.7

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.3

2 years ago

0.2.6

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago