Function iterative_methods::utils::generate_stream_with_constant_probability[][src]

pub fn generate_stream_with_constant_probability(
    stream_length: usize,
    capacity: usize,
    probability: f64,
    initial_weight: f64,
    initial_value: usize,
    final_value: usize
) -> impl Iterator<Item = WeightedDatum<usize>>
Expand description

Utility Functions for Weighted Reservoir Sampling utility function for testing ReservoirSample