pub struct Log1pShiftState {
pub shift: f64,
pub margin: f64,
}Expand description
State for Log1pShift.
Fields§
§shift: f64Additive shift applied before ln_1p.
margin: f64Small non-negative distance between the shifted training minimum and zero.
Implementations§
Source§impl Log1pShiftState
impl Log1pShiftState
Sourcepub fn lower_bound(self) -> f64
pub fn lower_bound(self) -> f64
Lower bound accepted by Log1pShift::transform_slice.
Trait Implementations§
Source§impl Clone for Log1pShiftState
impl Clone for Log1pShiftState
Source§fn clone(&self) -> Log1pShiftState
fn clone(&self) -> Log1pShiftState
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 Copy for Log1pShiftState
Source§impl Debug for Log1pShiftState
impl Debug for Log1pShiftState
Source§impl PartialEq for Log1pShiftState
impl PartialEq for Log1pShiftState
Source§fn eq(&self, other: &Log1pShiftState) -> bool
fn eq(&self, other: &Log1pShiftState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Log1pShiftState
Auto Trait Implementations§
impl Freeze for Log1pShiftState
impl RefUnwindSafe for Log1pShiftState
impl Send for Log1pShiftState
impl Sync for Log1pShiftState
impl Unpin for Log1pShiftState
impl UnsafeUnpin for Log1pShiftState
impl UnwindSafe for Log1pShiftState
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