pub struct Modulation {
pub bias_delta: BTreeMap<String, f64>,
pub constraint_delta: BTreeMap<String, f64>,
pub explore_bonus_delta: f64,
pub risk_tolerance_delta: f64,
}Expand description
Data structure representing modulation.
Fields§
§bias_delta: BTreeMap<String, f64>Mapping of bias delta.
constraint_delta: BTreeMap<String, f64>Mapping of constraint delta.
explore_bonus_delta: f64Soft nudge to RuleEffect.explore_bonus (will be sanitized after merge).
risk_tolerance_delta: f64Soft nudge to RuleEffect.risk_tolerance (will be sanitized after merge).
Trait Implementations§
Source§impl Clone for Modulation
impl Clone for Modulation
Source§impl Debug for Modulation
impl Debug for Modulation
Source§impl Default for Modulation
impl Default for Modulation
Source§impl<'de> Deserialize<'de> for Modulation
impl<'de> Deserialize<'de> for Modulation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Modulation
impl Freeze for Modulation
impl Move for Modulation
impl RefUnwindSafe for Modulation
impl Send for Modulation
impl Sync for Modulation
impl Unpin for Modulation
impl UnsafeUnpin for Modulationwhere
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
impl UnwindSafe for Modulation
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