3 unstable releases
0.5.0 | Nov 25, 2022 |
---|---|
0.4.2 | Apr 9, 2019 |
0.4.0 | Mar 24, 2019 |
#1101 in Hardware support
13KB
229 lines
sensulator
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
.
example
See examples:
Testing with quickcheck
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
Dependencies
~1MB
~21K SLoC