[−][src]Function hwt::search::search
pub fn search(
bits: u32,
sl: u32,
sw: u32,
tw: u32,
radius: u32
) -> (impl Iterator<Item = (u32, u32)>, u32)
Iterator over the indices that fall within a radius of a number.
bits
- The number of bits the that make up the bit substringsl
comes from.sl
- The weight of the left half of the 2-bit search number.sw
- The weight of the whole 2-bit search number.tw
- The weight of the whole 2-bit target number.radius
- The maximum possible distance of matches.
Returns the iterator over the indices and also the bucket size
(MIN - MAX
). The iterator always iterates over increasing SOD
.