pub struct SiftDataset {
pub base: Vec<Vec<f32>>,
pub queries: Vec<Vec<f32>>,
pub ground_truth: Vec<Vec<u32>>,
pub dim: usize,
}Expand description
One full SIFT-family dataset: base vectors, query vectors, per-query ground-truth neighbour ids, and the shared dimensionality.
base[i] is the i-th base vector — i is also the row-index ID
used in crate::build_index_from_base and the value stored in the
.ivecs ground-truth entries.
Fields§
§base: Vec<Vec<f32>>The base vectors used to build the index under test.
queries: Vec<Vec<f32>>The query vectors against which recall and latency are measured.
ground_truth: Vec<Vec<u32>>Per-query exact top-k neighbour ids (ids index into base).
dim: usizeThe dimensionality every base and query vector shares.
Trait Implementations§
Source§impl Clone for SiftDataset
impl Clone for SiftDataset
Source§fn clone(&self) -> SiftDataset
fn clone(&self) -> SiftDataset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SiftDataset
impl RefUnwindSafe for SiftDataset
impl Send for SiftDataset
impl Sync for SiftDataset
impl Unpin for SiftDataset
impl UnsafeUnpin for SiftDataset
impl UnwindSafe for SiftDataset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more