Skip to content
Symi Docs
Rust

The Rust manual covers the recommended facade. The complete native crate is documented in the native Rust API reference.

Probability distribution registry

The table below lists every distribution family accepted by context.distribution. Parameters are ordered exactly as shown. An entry marked unevaluated remains a symbolic operation when that closed form is not available.

Family Kind Parameters Arity Parameter domain Support Density or mass Cumulative distribution Raw moments Cumulants Moment-generating function Characteristic function
normal continuous mean, standard_deviation 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available available available for the recorded closed forms derived from moments when the required moments close available available
exponential continuous rate 1 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available available available for the recorded closed forms derived from moments when the required moments close available available
uniform continuous lower_bound, upper_bound 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available available unevaluated for general order derived from moments when the required moments close available available
gamma_distribution continuous shape, rate 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close available available
beta_distribution continuous shape_alpha, shape_beta 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close unevaluated unevaluated
lognormal continuous location, scale 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close unevaluated unevaluated
student_t continuous degrees_of_freedom 1 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close unevaluated unevaluated
cauchy continuous location, scale 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available available unevaluated for general order derived from moments when the required moments close unevaluated available
chi_squared continuous degrees_of_freedom 1 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close available available
erlang continuous shape, rate 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close available available
bernoulli discrete success_probability 1 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available available unevaluated for general order derived from moments when the required moments close available available
binomial discrete trials, success_probability 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close available available
geometric discrete success_probability 1 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close available available
poisson discrete rate 1 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close available available
negative_binomial discrete success_count, success_probability 2 distribution-specific symbolic domain restrictions see support(random_variable) for the exact symbolic set available unevaluated unevaluated for general order derived from moments when the required moments close available available

Use construction and parsing to build a distribution and statistics for random-variable operations.