pub struct RandomAutomaton { /* private fields */ }Expand description
Random process automaton
Implementations§
Source§impl RandomAutomaton
impl RandomAutomaton
Sourcepub fn white_noise(name: &str, update_rate: f64) -> Self
pub fn white_noise(name: &str, update_rate: f64) -> Self
Create white noise generator
Sourcepub fn with_range(self, range: Range) -> Self
pub fn with_range(self, range: Range) -> Self
Set the range
Trait Implementations§
Source§impl Automaton for RandomAutomaton
impl Automaton for RandomAutomaton
Source§type Internal = (u64, f64, f64)
type Internal = (u64, f64, f64)
The automaton’s internal state, carried across step invocations.
Source§fn step(
&self,
internal: &mut Self::Internal,
_current: &ParamValue,
time: Time,
_action: &Self::Action,
) -> ParamValue
fn step( &self, internal: &mut Self::Internal, _current: &ParamValue, time: Time, _action: &Self::Action, ) -> ParamValue
Advances the automaton by one step, producing a new output value. Read more
Source§fn initial_internal(&self) -> Self::Internal
fn initial_internal(&self) -> Self::Internal
Returns the automaton’s initial internal state (at time zero).
Source§impl Clone for RandomAutomaton
impl Clone for RandomAutomaton
Source§fn clone(&self) -> RandomAutomaton
fn clone(&self) -> RandomAutomaton
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RandomAutomaton
impl RefUnwindSafe for RandomAutomaton
impl Send for RandomAutomaton
impl Sync for RandomAutomaton
impl Unpin for RandomAutomaton
impl UnsafeUnpin for RandomAutomaton
impl UnwindSafe for RandomAutomaton
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more