pub struct LinearRegressionArray<C> { /* private fields */ }Expand description
Implementation of CompressedArray that stores differences of values and linear regression
with the same number of bits required to store the largest difference.
Trait Implementations§
Source§impl<C: LinearRegressionConstructor> CompressedArray for LinearRegressionArray<C>
impl<C: LinearRegressionConstructor> CompressedArray for LinearRegressionArray<C>
Source§const MAX_FOR_UNUSED: bool = true
const MAX_FOR_UNUSED: bool = true
Expect
values to have usize::MAX for unused values; false if values must be sorted.Source§fn write_bytes(&self) -> usize
fn write_bytes(&self) -> usize
Returns number of bytes which
write will write.Source§impl<C> GetSize for LinearRegressionArray<C>
impl<C> GetSize for LinearRegressionArray<C>
Source§const USES_DYN_MEM: bool = true
const USES_DYN_MEM: bool = true
true if and only if the variables of this type can use dynamic (heap) memory.Source§fn size_bytes_dyn(&self) -> usize
fn size_bytes_dyn(&self) -> usize
Returns approximate number of bytes occupied by dynamic (heap) part of
self.
Same as self.size_bytes() - std::mem::size_of_val(self).Source§fn size_bytes_content_dyn(&self) -> usize
fn size_bytes_content_dyn(&self) -> usize
Returns approximate number of bytes occupied by dynamic (heap) part of
self content.
It usually equals to size_bytes_dyn().
However, sometimes it is smaller by the amount of memory reserved but not yet used
(e.g., size_bytes_content_dyn() only takes into account the length of the vector and not its capacity).Source§fn size_bytes(&self) -> usize
fn size_bytes(&self) -> usize
Returns approximate, total (including heap memory) number of bytes occupied by
self.Auto Trait Implementations§
impl<C> Freeze for LinearRegressionArray<C>
impl<C> RefUnwindSafe for LinearRegressionArray<C>where
C: RefUnwindSafe,
impl<C> Send for LinearRegressionArray<C>where
C: Send,
impl<C> Sync for LinearRegressionArray<C>where
C: Sync,
impl<C> Unpin for LinearRegressionArray<C>where
C: Unpin,
impl<C> UnsafeUnpin for LinearRegressionArray<C>
impl<C> UnwindSafe for LinearRegressionArray<C>where
C: 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
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.