pub struct TopP {
pub p: f32,
pub min_keep: usize,
}Expand description
Keeps the smallest descending prefix that reaches a probability mass.
Fields§
§p: f32Target cumulative probability.
min_keep: usizeMinimum survivor count.
Trait Implementations§
impl Copy for TopP
impl StructuralPartialEq for TopP
Auto Trait Implementations§
impl Freeze for TopP
impl RefUnwindSafe for TopP
impl Send for TopP
impl Sync for TopP
impl Unpin for TopP
impl UnsafeUnpin for TopP
impl UnwindSafe for TopP
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