Struct cogset::BruteScan
[−]
[src]
pub struct BruteScan<'a, P: Point + 'a> { /* fields omitted */ }
A point collection where queries are answered via brute-force scans over the whole list.
Points are represented via their indices into the list passed to
new
.
Methods
impl<'a, P: Point> BruteScan<'a, P>
[src]
Trait Implementations
impl<'a, P: Point> Points for BruteScan<'a, P>
[src]
impl<'a, P: Point> ListPoints for BruteScan<'a, P>
[src]
type AllPoints = Range<usize>
An iterator over all the points in an instance of Self
fn all_points(&self) -> Range<usize>
Return an iterator over all points in self
. Read more
impl<'a, P: Point> RegionQuery for BruteScan<'a, P>
[src]
type Neighbours = BruteScanNeighbours<'a, P>
An iterator over the nearby points and their distances of a given one.
fn neighbours(&self, point: &usize, eps: f64) -> BruteScanNeighbours<'a, P>
Return an iterator over points in self
with distance from point
less than or equal to epsilon
. Read more