pub struct GilbertElliot {
pub p: f64,
pub r: f64,
pub h: f64,
pub k: f64,
}Expand description
Parameters for the Gilbert-Elliot two-state Markov burst-loss model.
p— Good → Bad transition probability per packet,[0.0, 1.0]r— Bad → Good transition probability per packet,[0.0, 1.0]h— reception probability in Bad state (1-h= loss in bad state)k— reception probability in Good state (1-k= loss in good state)
Steady-state loss ≈ p/(p+r) * (1-h) + r/(p+r) * (1-k)
Fields§
§p: f64§r: f64§h: f64§k: f64Trait Implementations§
Source§impl Clone for GilbertElliot
impl Clone for GilbertElliot
Auto Trait Implementations§
impl Freeze for GilbertElliot
impl RefUnwindSafe for GilbertElliot
impl Send for GilbertElliot
impl Sync for GilbertElliot
impl Unpin for GilbertElliot
impl UnsafeUnpin for GilbertElliot
impl UnwindSafe for GilbertElliot
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