pub struct Codebook<T> {
pub centroids: BlockVectorSet<T>,
pub indices: Vec<usize>,
}Expand description
Codebook.
Fields§
§centroids: BlockVectorSet<T>Cluster centroids.
indices: Vec<usize>Cluster (centroid) indices assigned to input vectors.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Codebook<T>where T: RefUnwindSafe,
impl<T> Send for Codebook<T>where T: Send,
impl<T> Sync for Codebook<T>where T: Sync,
impl<T> Unpin for Codebook<T>where T: Unpin,
impl<T> UnwindSafe for Codebook<T>where T: UnwindSafe,
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