pub struct Codebook {
pub centroids: Vec<f64>,
pub boundaries: Vec<f64>,
}Expand description
A static codebook: sorted centroids and the decision boundaries between them. For k centroids there are k-1 interior boundaries; the outer boundaries are implicitly -1 and +1.
Fields§
§centroids: Vec<f64>Sorted centroid values (length = 2^bits).
boundaries: Vec<f64>Interior decision boundaries (length = 2^bits - 1).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Codebook
impl RefUnwindSafe for Codebook
impl Send for Codebook
impl Sync for Codebook
impl Unpin for Codebook
impl UnsafeUnpin for Codebook
impl UnwindSafe for Codebook
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