pub fn local_maxima<T>(ts: &[T], radius: u32) -> Vec<T>
where T: Position + Score + Copy,
Expand description

Returns all items which have the highest score in the (2 * radius + 1) square block centred on them. Ties are resolved lexicographically.