Struct sampling::examples::coin_flips::CoinFlipSequence [−][src]
pub struct CoinFlipSequence<R> { /* fields omitted */ }
Expand description
Implementations
Count how often Head
occurs in the Coin flip sequence
- Calculate the head count, if a previouse head count of the ensemble and the markov steps leading to the current state are known
head_count
is updated- might panic if
step
was not the markov step leading from the ensemble withhead_count
to the current ensemble - if it does not panic, the result will be wrong
Count many times Head
occured in a row
- uses maximum value, i.e., for the sequence
HHTHHHT
it will return 3
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Perform a markov step
undo_steps
undo_steps_quiet
Markov steps without return Read more
Accumulating markov step Read more
Accumulating markov steps Read more
Accumulating markov steps Read more
Undo markov steps Read more
Undo markov steps Read more
Auto Trait Implementations
impl<R> RefUnwindSafe for CoinFlipSequence<R> where
R: RefUnwindSafe,
impl<R> Send for CoinFlipSequence<R> where
R: Send,
impl<R> Sync for CoinFlipSequence<R> where
R: Sync,
impl<R> Unpin for CoinFlipSequence<R> where
R: Unpin,
impl<R> UnwindSafe for CoinFlipSequence<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more