pub enum AssignmentDesign {
Bernoulli {
probabilities: Arc<[f64]>,
},
CompleteRandomization {
treated: usize,
},
ClusterRandomization {
clusters: Arc<[u32]>,
treated_clusters: usize,
},
}Expand description
Known random assignment design.
Variants§
Bernoulli
Independent Bernoulli assignment, scalar or unit-specific probabilities.
CompleteRandomization
Exactly treated units selected uniformly without replacement.
ClusterRandomization
Exactly treated_clusters clusters selected uniformly.
Trait Implementations§
Source§impl Clone for AssignmentDesign
impl Clone for AssignmentDesign
Source§fn clone(&self) -> AssignmentDesign
fn clone(&self) -> AssignmentDesign
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssignmentDesign
impl Debug for AssignmentDesign
Source§impl PartialEq for AssignmentDesign
impl PartialEq for AssignmentDesign
impl StructuralPartialEq for AssignmentDesign
Auto Trait Implementations§
impl Freeze for AssignmentDesign
impl RefUnwindSafe for AssignmentDesign
impl Send for AssignmentDesign
impl Sync for AssignmentDesign
impl Unpin for AssignmentDesign
impl UnsafeUnpin for AssignmentDesign
impl UnwindSafe for AssignmentDesign
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