Struct armnod::SetStringChooserZipf
source · pub struct SetStringChooserZipf { /* private fields */ }Expand description
Draw values according to a Zipf distribution.
Implementations§
source§impl SetStringChooserZipf
impl SetStringChooserZipf
sourcepub fn from_alpha(n: u64, alpha: f64) -> Self
pub fn from_alpha(n: u64, alpha: f64) -> Self
Configure the Zipf distribution to be [0, n) with alpha.
sourcepub fn from_theta(n: u64, theta: f64) -> Self
pub fn from_theta(n: u64, theta: f64) -> Self
Configure the Zipf distribution to be [0, n) with theta.
Trait Implementations§
source§impl SeedChooser for SetStringChooserZipf
impl SeedChooser for SetStringChooserZipf
fn which_seed(&mut self, guac: &mut Guacamole) -> SeedChoice
Auto Trait Implementations§
impl RefUnwindSafe for SetStringChooserZipf
impl Send for SetStringChooserZipf
impl Sync for SetStringChooserZipf
impl Unpin for SetStringChooserZipf
impl UnwindSafe for SetStringChooserZipf
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