#random-number #quantities #simulation #dimension #object-pool #model #statistics

no-std odem-rs-util

Model elements and statistical tooling for the ODEM-rs simulation framework

2 releases

Uses new Rust 2024

0.1.1 Feb 21, 2025
0.1.0 Feb 21, 2025

#752 in Asynchronous

Download history 228/week @ 2025-02-18 31/week @ 2025-02-25 7/week @ 2025-03-04 2/week @ 2025-03-11

268 downloads per month
Used in odem-rs

MIT license

430KB
6.5K SLoC

ODEM-rs Util

odem-rs-util offers additional utility structures that improve model development in ODEM-rs. It provides object pools, random number streams, and statistics collection tools improve modeling ergonomics.

Features

  • Dynamic object pooling for efficient memory reuse.
  • Deterministic random number generation with independent streams using rand.
  • Statistical utilities for model evaluation.
  • Physical dimensions for quantities using uom.

Of these, only dynamically sized object pools require feature alloc to be active.

Installation

It is recommended to use the odem-rs entry crate for ODEM-rs, but it is possible to use this crate together with the simulator core from odem-rs-core. To use it, add the following line to your Cargo.toml:

[dependencies]
odem-rs-util = "*"

License

Licensed under MIT. See LICENSE for details.

Dependencies

~6–8MB
~167K SLoC