Enum cnetworks::LinkWeight [−][src]
pub enum LinkWeight { Constant { c: f64, }, Uniform, }
LinkWeight
determines the weight (ie. the probability of infection) of each link in the
network.
Variants
The probability should be constant end equalt to c
. Keep in mind that 0 < c <= 1, the
Network
constructor will panic if that is not the case.
Show fields
Fields of Constant
c: f64
A weight sampled uniformly from (0, 1).
Trait Implementations
impl Clone for LinkWeight
[src]
impl Clone for LinkWeight
[src]fn clone(&self) -> LinkWeight
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for LinkWeight
impl RefUnwindSafe for LinkWeight
impl Send for LinkWeight
impl Send for LinkWeight
impl Sync for LinkWeight
impl Sync for LinkWeight
impl Unpin for LinkWeight
impl Unpin for LinkWeight
impl UnwindSafe for LinkWeight
impl UnwindSafe for LinkWeight