tri_poly_moment

Crates.iotri_poly_moment
lib.rstri_poly_moment
version0.1.1
sourcesrc
created_at2023-09-03 13:33:22.356671
updated_at2023-09-03 13:41:28.656361
descriptionCalculate moments of random variables. The distributions of the random variables are normal, uniform, and exponential.
homepage
repositoryhttps://github.com/Spargel125/tri_poly_moment
max_upload_size
id962250
size20,151
(Spargel125)

documentation

README

GitHub crate

Calculate mixed-trigonometric-polynomial moment of random variables

reference method: Moment-Based Exact Uncertainty Propagation Through Nonlinear Stochastic Autonomous Systems

The distributions of the random variables are normal, uniform, and exponential.

[dependencies]
tri_poly_moment = "0.1.0"

Example

if calculate moment of Gaussian distribusions

use tri_poly_moment::Gaussian;
let arg = Gaussian::new(-2.1, 0.4 * 0.4);
arg.x(); //if calc E[x], arg.x() = -2.1
Commit count: 26

cargo fmt