pub fn create_boolean_array(size: usize, null_density: f32, true_density: f32) -> BooleanArray
where
    Standard: Distribution<bool>,
{
    let mut rng = seedable_rng();
    (0..size)
        .map(|_| {
            if rng.gen::<f32>() < null_density {
                None
            } else {
                let value = rng.gen::<f32>() < true_density;
                Some(value)
            }
        })
        .collect()
}
/// Creates an random (but fixed-seeded) array of a given size and null density
Creates an random (but fixed-seeded) array of a given size and null density
Creates an random ( but fixed - seeded ) array of a given size and null density
pub fn create_boolean_array(size: usize, null_density: f32, true_density: f32) -> BooleanArray
where
    Standard: Distribution<bool>,
{
    let mut rng = seedable_rng();
    (0..size)
        .map(|_| {
            if rng.gen::<f32>() < null_density {
                None
            } else {
                let value = rng.gen::<f32>() < true_density;
                Some(value)
            }
        })
        .collect()
}
pub fn create_boolean_array ( size : usize , null_density : f32 , true_density : f32 ) -> BooleanArray where Standard : Distribution < bool > , { let mut rng = seedable_rng ( ) ; ( 0 .. size ) . map ( | _ | { if rng . gen :: < f32 > ( ) < null_density { None } else { let value = rng . gen :: < f32 > ( ) < true_density ; Some ( value ) } } ) . collect ( ) }
Creates an random (but fixed-seeded) array of a given size and null density
Creates an random ( but fixed - seeded ) array of a given size and null density
size
usize
null_density
f32
true_density
f32
size
usize
null_density
f32
true_density
f32