var searchIndex = {}; searchIndex["roulette_wheel"] = {"doc":"A Little implementation of the random-wheel principle, `RouletteWheel<T>`.\nhttps://wikipedia.org/wiki/Fitness_proportionate_selection","items":[[3,"RouletteWheel","roulette_wheel","a little implementation of a random-wheel.",null,null],[11,"clone","","",0,null],[11,"default","","",0,{"inputs":[],"output":{"name":"self"}}],[11,"from","","",0,null],[11,"from_vec","","create a new random-wheel from vector.\n# Example",0,{"inputs":[{"name":"vec"}],"output":{"name":"roulettewheel"}}],[11,"new","","create a new empty random-wheel.\n# Example",0,{"inputs":[],"output":{"name":"roulettewheel"}}],[11,"with_capacity","","Creates an empty RouletteWheel with space for at least n elements.\n# Example",0,{"inputs":[{"name":"usize"}],"output":{"name":"roulettewheel"}}],[11,"reserve","","Reserves capacity for at least `additional` more elements to be inserted\nin the given `Ringbuf`.\nThe collection may reserve more space to avoid frequent reallocations.\n# Example",0,null],[11,"capacity","","Returns the number of elements the RouletteWheel can hold without\nreallocating.\n# Example",0,null],[11,"len","","returns the number of elements in the wheel.\n# Example",0,null],[11,"clear","","remove all elements in this wheel.\n# Example",0,null],[11,"is_empty","","returns `true` if this wheel is empty else return `false`.\n# Example",0,null],[11,"push","","add an element associated with a probability.\n# Example",0,null],[11,"compute_proba_sum","","Will recompute the probabilities sum\nuse it when you iterate through this vector and change proba values",0,null],[11,"proba_sum","","returns total of luck you pushed.\n# Example",0,null],[11,"peek","","returns a ref to the randomly peeked element with\nit's probality to be peeked.\n# Example",0,null],[11,"peek_mut","","returns a mutable ref to the randomly peeked element with\nit's probality to be peeked.\n# Example",0,null],[11,"pop","","removes a randomly peeked element and return it with\nit's probality to be peeked.\n# Example",0,null]],"paths":[[3,"RouletteWheel"]]}; initSearch(searchIndex);