pub struct PreparedSample<'a> {
pub matrix: MatrixRef<'a>,
pub partitions: SamplePartitions,
pub selected_rows: RowSelectionRef<'a>,
pub effective_n: usize,
pub dropped: DropSummary,
pub weights: Option<&'a [f64]>,
}Expand description
Borrowed prepared sample.
Fields§
§matrix: MatrixRef<'a>Column-major design matrix.
partitions: SamplePartitionsX/Y/Z partitions.
selected_rows: RowSelectionRef<'a>Selected raw rows.
effective_n: usizeEffective sample size.
dropped: DropSummaryDrop summary.
weights: Option<&'a [f64]>Per-row weights when policy requests them.
Trait Implementations§
Source§impl<'a> Clone for PreparedSample<'a>
impl<'a> Clone for PreparedSample<'a>
Source§fn clone(&self) -> PreparedSample<'a>
fn clone(&self) -> PreparedSample<'a>
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 moreimpl<'a> Copy for PreparedSample<'a>
Auto Trait Implementations§
impl<'a> Freeze for PreparedSample<'a>
impl<'a> RefUnwindSafe for PreparedSample<'a>
impl<'a> Send for PreparedSample<'a>
impl<'a> Sync for PreparedSample<'a>
impl<'a> Unpin for PreparedSample<'a>
impl<'a> UnsafeUnpin for PreparedSample<'a>
impl<'a> UnwindSafe for PreparedSample<'a>
Blanket Implementations§
impl<T> Allocation for T
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