Crates.io | sensulator |
lib.rs | sensulator |
version | 0.5.0 |
source | src |
created_at | 2019-03-24 17:20:29.080225 |
updated_at | 2022-11-25 21:28:08.831812 |
description | Simple sensor simulator, provides noisy readings of ideal measurements |
homepage | |
repository | https://github.com/tstellanova/sensulator |
max_upload_size | |
id | 123523 |
size | 21,001 |
A rust library for simulating sensor measurement behavior. You can initialize or update a sensulator with a central "ideal" value, and the sensulator will subsequently provide noisy sensor measurements centered around that value.
This library allows you to provide a random number generator (RNG)
that could be based on either unpredictable, truly random behavior
(such as StdRng
when used with std
) or predictable, reproducible
behavior when used with a SeedableRng
.
See examples:
A brief quickcheck is run as part of cargo test
; however, if you want to run more
extensive tests, you can use something like:
export QUICKCHECK_TESTS=1000; cargo test -- --nocapture