| Crates.io | prodef |
| lib.rs | prodef |
| version | 0.1.0 |
| created_at | 2026-01-16 23:59:35.279508+00 |
| updated_at | 2026-01-16 23:59:35.279508+00 |
| description | A simple Rust crate for handling probability distributions. |
| homepage | https://github.com/ajefweiss/prodef-rs/ |
| repository | https://github.com/ajefweiss/prodef-rs/ |
| max_upload_size | |
| id | 2049554 |
| size | 107,801 |
A simple Rust crate for handling probability distributions.
All probability density functions (PDFs) implement the [Density], providing common operations like:
The Domain trait represents the valid input space for a PDF. A domain may be bounded, unbounded, or have a special structure.
Available domain types:
MDomain - Bounded multivariate domains (hypercubes)UDomain - Unbounded multivariate domainsSDomain - Special univariate domains (for the use of uni dimensional PDFs)MultivariateDensity
Combines multiple independent univariate distributions into a multivariate density. Use when dimensions are statistically independent.
MultiNormalDensity
A full multivariate normal (Gaussian) distribution with arbitrary covariance. Use when modeling correlated multi-dimensional data.
ParticleDensity
A non-parametric density represented by weighted particles/samples. Use for complex distributions that can't be expressed analytically or for particle filter applications.
For one-dimensional cases, use these directly:
ConstantDensity - A degenerate distribution at a fixed valueCosineDensity - Cosine distributionLogUniformDensity - Uniform in log-space (for positive values)NormalDensity - Nnormal distributionUniformDensity - Uniform distribution over an interval