pub struct RandomAutomaton { /* private fields */ }Expand description
Автомат случайного процесса
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
Создать генератор белого шума
Sourcepub fn with_range(self, range: Range) -> Self
pub fn with_range(self, range: Range) -> Self
Установить диапазон
Trait Implementations§
Source§impl Automaton for RandomAutomaton
impl Automaton for RandomAutomaton
Source§type State = RandomState
type State = RandomState
Тип состояния
Source§fn step(
&self,
time: Time,
_action: &Self::Action,
state: &Self::State,
) -> (Self::State, Option<f64>)
fn step( &self, time: Time, _action: &Self::Action, state: &Self::State, ) -> (Self::State, Option<f64>)
Выполнить один шаг автомата Read more
Source§fn initial_state(&self) -> Self::State
fn initial_state(&self) -> Self::State
Начальное состояние
Source§fn extract_value(&self, state: &Self::State) -> f64
fn extract_value(&self, state: &Self::State) -> f64
Извлечь значение из состояния
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 · 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