diff --git a/README.md b/README.md index 667bc82..ad4f2ec 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,124 @@ # FastRng -A fast random number generator \ No newline at end of file +FastRng is a multi-threaded pseudo-random number generator. Besides the generation of uniformly distributed random numbers, there are several other distributions to choose from. For performance reasons the parameters of the distributions are not user-definable. For some distributions, therefore, different parameter variations are available. If a different combination is desired, a separate class can be created. + +## Available Distributions + +### Normal Distribution (std. dev.=0.2, mean=0.5) +![](images/normal.png) + +Wikipedia: https://en.wikipedia.org/wiki/Normal_distribution + + +### Beta Distribution (alpha=2, beta=2) +![](images/beta-a2b2.png) + +Wikipedia: https://en.wikipedia.org/wiki/Beta_distribution + + +### Beta Distribution (alpha=2, beta=5) +![](images/beta-a2b5.png) + +Wikipedia: https://en.wikipedia.org/wiki/Beta_distribution + + +### Beta Distribution (alpha=5, beta=2) +![](images/beta-a5b2.png) + +Wikipedia: https://en.wikipedia.org/wiki/Beta_distribution + + +### Cauchy / Lorentz Distribution (x0=0) +![](images/cauchy-lorentz-x0.png) + +Wikipedia: https://en.wikipedia.org/wiki/Cauchy_distribution + + +### Cauchy / Lorentz Distribution (x0=1) +![](images/cauchy-lorentz-x1.png) + +Wikipedia: https://en.wikipedia.org/wiki/Cauchy_distribution + + +### Chi-Square Distribution (k=1) +![](images/chi-square-k1.png) + +Wikipedia: https://en.wikipedia.org/wiki/Chi-square_distribution + + +### Chi-Square Distribution (k=4) +![](images/chi-square-k4.png) + +Wikipedia: https://en.wikipedia.org/wiki/Chi-square_distribution + + +### Chi-Square Distribution (k=10) +![](images/chi-square-k10.png) + +Wikipedia: https://en.wikipedia.org/wiki/Chi-square_distribution + + +### Exponential Distribution (lambda=5) +![](images/exponential-la5.png) + +Wikipedia: https://en.wikipedia.org/wiki/Exponential_distribution + + +### Exponential Distribution (lambda=10) +![](images/exponential-la10.png) + +Wikipedia: https://en.wikipedia.org/wiki/Exponential_distribution + + +### Inverse Exponential Distribution (lambda=5) +![](images/inverse-exponential-la5.png) + +Wikipedia: https://en.wikipedia.org/wiki/Inverse_distribution#Inverse_exponential_distribution + + +### Inverse Exponential Distribution (lambda=10) +![](images/inverse-exponential-la10.png) + +Wikipedia: https://en.wikipedia.org/wiki/Inverse_distribution#Inverse_exponential_distribution + + +### Gamma Distribution (alpha=5, beta=15) +![](images/gamma-a5b15.png) + +Wikipedia: https://en.wikipedia.org/wiki/Gamma_distribution + + +### Inverse Gamma Distribution (alpha=3, beta=0.5) +![](images/inverse-gamma-a3b05.png) + +Wikipedia: https://en.wikipedia.org/wiki/Inverse-gamma_distribution + + +### Laplace Distribution (b=0.1, mu=0) +![](images/laplace-b01m0.png) + +Wikipedia: https://en.wikipedia.org/wiki/Laplace_distribution + + +### Laplace Distribution (b=0.1, mu=0.5) +![](images/laplace-b01m05.png) + +Wikipedia: https://en.wikipedia.org/wiki/Laplace_distribution + + +### Log-Normal Distribution (sigma=1, mu=0) +![](images/log-normal-s1m0.png) + +Wikipedia: https://en.wikipedia.org/wiki/Log-normal_distribution + + +### StudentT Distribution (nu=1) +![](images/student-t-nu1.png) + +Wikipedia: https://en.wikipedia.org/wiki/Student%27s_t-distribution + + +### Weibull Distribution (k=0.5, lambda=1) +![](images/weibull-k05la1.png) + +Wikipedia: https://en.wikipedia.org/wiki/Weibull_distribution \ No newline at end of file diff --git a/images/beta-a2b2.png b/images/beta-a2b2.png new file mode 100644 index 0000000..11b7a41 --- /dev/null +++ b/images/beta-a2b2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:406338cc68c591bf4addec3c12f0bf2ba06cdb35c0d76a97a254d365ded37ddb +size 18821 diff --git a/images/beta-a2b5.png b/images/beta-a2b5.png new file mode 100644 index 0000000..18503d3 --- /dev/null +++ b/images/beta-a2b5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:913c16e119c300b87fb2edeb65a99fa1e868a7f7a581ee1508bf8bd0396a38d4 +size 17775 diff --git a/images/beta-a5b2.png b/images/beta-a5b2.png new file mode 100644 index 0000000..6e4b051 --- /dev/null +++ b/images/beta-a5b2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd49217ebbf76207d7c3b53deaab46619aaea44412038551d0220d11fdf1ea43 +size 18418 diff --git a/images/cauchy-lorentz-x0.png b/images/cauchy-lorentz-x0.png new file mode 100644 index 0000000..bf0a561 --- /dev/null +++ b/images/cauchy-lorentz-x0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a5e7e551978643b634b2cb485ee543a81ba64493bab0f0394eade603c0529b9 +size 16527 diff --git a/images/cauchy-lorentz-x1.png b/images/cauchy-lorentz-x1.png new file mode 100644 index 0000000..552673a --- /dev/null +++ b/images/cauchy-lorentz-x1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b28063e3cb020a989f7f325ef11218fcfc93c7a0a30544856023c8a1358d3bb +size 16493 diff --git a/images/chi-square-k1.png b/images/chi-square-k1.png new file mode 100644 index 0000000..6166109 --- /dev/null +++ b/images/chi-square-k1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74088dcbdfb329934571cbd0a73ad2d8e326f5ea59ecd893c02f30aee2fe9243 +size 16009 diff --git a/images/chi-square-k10.png b/images/chi-square-k10.png new file mode 100644 index 0000000..f8612f0 --- /dev/null +++ b/images/chi-square-k10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:715f2a29871d2ff89cbaf803918db695a2c644c598e28e01bfc3b6847e9f8cf5 +size 16846 diff --git a/images/chi-square-k4.png b/images/chi-square-k4.png new file mode 100644 index 0000000..2cf9902 --- /dev/null +++ b/images/chi-square-k4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b598ba20157da63236da579ee165049e2b6c592c6405e8bc3b8abd101d95249 +size 18147 diff --git a/images/exponential-la10.png b/images/exponential-la10.png new file mode 100644 index 0000000..945c572 --- /dev/null +++ b/images/exponential-la10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55fe2216fa4b5dd728b950c50fe023f24fa08880e8f9c5380c41d07f5e5a5f8d +size 15787 diff --git a/images/exponential-la5.png b/images/exponential-la5.png new file mode 100644 index 0000000..0551bce --- /dev/null +++ b/images/exponential-la5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:965b71a5873b2c2a2520a52dd76302615d82b4f4fcf0adb4b98103f3f8196521 +size 17106 diff --git a/images/gamma-a5b15.png b/images/gamma-a5b15.png new file mode 100644 index 0000000..d0e1253 --- /dev/null +++ b/images/gamma-a5b15.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da8c1a75974cfb605c69a63a3a5a865a47ab30ca2a7338c94490c855f7a22afe +size 17529 diff --git a/images/inverse-exponential-la10.png b/images/inverse-exponential-la10.png new file mode 100644 index 0000000..76764b8 --- /dev/null +++ b/images/inverse-exponential-la10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c52e8ca54cc211082a6063929637dbe8b8eba1657d8fdb72873c45ccd16bf35c +size 15639 diff --git a/images/inverse-exponential-la5.png b/images/inverse-exponential-la5.png new file mode 100644 index 0000000..6dba54b --- /dev/null +++ b/images/inverse-exponential-la5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4131a4d4fd980e6f028f347d4dd57ac6b154a2e358ea8e60bb0ed21f0a875d55 +size 16955 diff --git a/images/inverse-gamma-a3b05.png b/images/inverse-gamma-a3b05.png new file mode 100644 index 0000000..eb4c44c --- /dev/null +++ b/images/inverse-gamma-a3b05.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30e541721cb80f73d34dc48c688fd400cce70f77f50c11409c10262bfe1edb48 +size 16958 diff --git a/images/laplace-b01m0.png b/images/laplace-b01m0.png new file mode 100644 index 0000000..7e34379 --- /dev/null +++ b/images/laplace-b01m0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e741fd31a8e1a0c930ecfa16360958cf2d4f468ec90e21f22b3298fe120b58b +size 15690 diff --git a/images/laplace-b01m05.png b/images/laplace-b01m05.png new file mode 100644 index 0000000..adb511f --- /dev/null +++ b/images/laplace-b01m05.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a9bbc0231bfc2214c2f404879895a5ffc345cc8061e48ec96bd2c7f88243051 +size 16709 diff --git a/images/log-normal-s1m0.png b/images/log-normal-s1m0.png new file mode 100644 index 0000000..c831c34 --- /dev/null +++ b/images/log-normal-s1m0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04b9895a725cd794c7b7a4f5c4769d292f0733c32ef2f9b39d417b07960ddf49 +size 17946 diff --git a/images/normal.png b/images/normal.png new file mode 100644 index 0000000..54661e1 --- /dev/null +++ b/images/normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e983d121b8d488efb4379526ff4f2a68b3a5cbca19a28e2c810084617639501 +size 16288 diff --git a/images/student-t-nu1.png b/images/student-t-nu1.png new file mode 100644 index 0000000..81f406d --- /dev/null +++ b/images/student-t-nu1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d31466cb4736dc7de1c09ef55d0b886dd253eaea7c1b82d46c9b5be04fe68f2d +size 18164 diff --git a/images/weibull-k05la1.png b/images/weibull-k05la1.png new file mode 100644 index 0000000..2bd6951 --- /dev/null +++ b/images/weibull-k05la1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4366c96b10eddb94d2ae2d6fb81e81e65498c46e4b64626b11c69efd11e75432 +size 15816