pub struct SignalGeneOutcome {
pub signal_pattern: String,
pub gene_id: String,
pub attempts: u32,
pub successes: u32,
pub success_rate: f32,
pub last_attempt: Option<String>,
pub smoothed_probability: f32,
pub weight: f32,
pub value: f32,
}Expand description
Historical (signal, gene) -> outcome mapping for advice
Fields§
§signal_pattern: String§gene_id: String§attempts: u32§successes: u32§success_rate: f32§last_attempt: Option<String>§smoothed_probability: f32Laplace-smoothed success probability
weight: f32Weight based on age (exponential decay)
value: f32Final value = probability * weight
Implementations§
Trait Implementations§
Source§impl Clone for SignalGeneOutcome
impl Clone for SignalGeneOutcome
Source§fn clone(&self) -> SignalGeneOutcome
fn clone(&self) -> SignalGeneOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignalGeneOutcome
impl Debug for SignalGeneOutcome
Source§impl<'de> Deserialize<'de> for SignalGeneOutcome
impl<'de> Deserialize<'de> for SignalGeneOutcome
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 Freeze for SignalGeneOutcome
impl RefUnwindSafe for SignalGeneOutcome
impl Send for SignalGeneOutcome
impl Sync for SignalGeneOutcome
impl Unpin for SignalGeneOutcome
impl UnsafeUnpin for SignalGeneOutcome
impl UnwindSafe for SignalGeneOutcome
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