Struct PbtLite
pub struct PbtLite { /* private fields */ }Expand description
The deterministic PBT-lite scalar-perturbation policy for continuous knobs.
Build one with PbtLite::new and hand it to
OnlineTunerBuilder::policy. Each cluster’s declared values define the
knob’s feasible range and starting point; the perturbation is deterministic
(no RNG).
Implementations§
§impl PbtLite
impl PbtLite
pub const fn new(period: u32) -> Self
pub const fn new(period: u32) -> Self
A PBT-lite policy that perturbs every period rounds, with the default
×up/×down factors (DEFAULT_PERTURB_UP/DEFAULT_PERTURB_DOWN).
Trait Implementations§
impl Copy for PbtLite
impl StructuralPartialEq for PbtLite
Auto Trait Implementations§
impl Freeze for PbtLite
impl RefUnwindSafe for PbtLite
impl Send for PbtLite
impl Sync for PbtLite
impl Unpin for PbtLite
impl UnsafeUnpin for PbtLite
impl UnwindSafe for PbtLite
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