alpha_stable

Crates.ioalpha_stable
lib.rsalpha_stable
version0.1.1
sourcesrc
created_at2023-11-04 15:03:49.575509
updated_at2023-11-18 12:10:11.673829
descriptionSample and generate probability distribution functions of Alpha-Stable distributions in Rust.
homepagehttps://github.com/pb137/alpha-stable/
repositoryhttps://github.com/pb137/alpha-stable/
max_upload_size
id1025208
size1,381,737
(pb137)

documentation

https://github.com/pb137/alpha-stable/

README

alpha-stable

Sample and generate probability distribution functions of Alpha-Stable distributions in Rust.

Specifying the distribution

Distributions are specified using one of two forms:

  • Standard form: S_alpha(sigma, beta, mu) - equivalent to the 'first parameterization' of Wikipedia with c = sigma.
  • Nolan's form: S^0_alpha(sigma, beta, mu_0) - equivalent to the 'second parameterization' in Wikipedia with delta = mu_0 and gamma = sigma.

Examples: random walks

Here are three random walks generated by examples/distribution/main.rs

Alpha = 2 - a normal distribution

Normal random walk

Alpha = 1.5

Alpha = 1.5

Alpha = 1.1

Alpha = 1.1

Examples: distributions

A set of probability distribution functions specified in Standard and Nolan's forms.

Standard form

Standard form

Nolan's form

Nolan's form

Examples: sample histograms

Some sample histograms to show samples and probability distribtions are consistent.

Alpha = 1.1

Alpha = 1.1

Alpha = 1.5

Alpha = 1.5

Alpha = 2 - a normal distribution

Alpha = 2.0

Alpha = 1.1; Beta = 0.5

Alpha = 1.1; Beta = 0.5

Commit count: 9

cargo fmt