pub struct DetectorPostMatchConfidenceSpec {
pub placeholder_multiplier: f64,
pub minimum_byte_diversity: f64,
pub low_diversity_multiplier: f64,
pub maximum_repeat_ratio: f64,
pub degenerate_run_min_length: usize,
pub degenerate_repeat_multiplier: f64,
pub data_envelope_multiplier: Option<f64>,
pub fixture_path_multiplier: f64,
pub ml_context_reapply_below: f64,
}Expand description
Detector-local confidence penalties applied after optional model scoring.
Fields§
§placeholder_multiplier: f64Multiplier for a surface or decoded placeholder word.
minimum_byte_diversity: f64Minimum unique-byte ratio before the value receives a diversity penalty.
low_diversity_multiplier: f64Multiplier for values below minimum_byte_diversity.
maximum_repeat_ratio: f64Maximum repeated-byte run ratio before the value receives a penalty.
degenerate_run_min_length: usizeAbsolute repeated-byte run length that receives a penalty regardless of ratio.
degenerate_repeat_multiplier: f64Multiplier for values exceeding either repeated-byte limit.
data_envelope_multiplier: Option<f64>Multiplier for decoded data envelopes. Omit it when the detector’s anchored credential shape makes this evidence inapplicable.
fixture_path_multiplier: f64Multiplier for findings under fixture or example path components.
ml_context_reapply_below: f64Reapply the source-context multiplier to model scores below this floor.
Implementations§
Trait Implementations§
Source§impl Clone for DetectorPostMatchConfidenceSpec
impl Clone for DetectorPostMatchConfidenceSpec
Source§fn clone(&self) -> DetectorPostMatchConfidenceSpec
fn clone(&self) -> DetectorPostMatchConfidenceSpec
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 DetectorPostMatchConfidenceSpec
Source§impl<'de> Deserialize<'de> for DetectorPostMatchConfidenceSpec
impl<'de> Deserialize<'de> for DetectorPostMatchConfidenceSpec
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
impl StructuralPartialEq for DetectorPostMatchConfidenceSpec
Auto Trait Implementations§
impl Freeze for DetectorPostMatchConfidenceSpec
impl RefUnwindSafe for DetectorPostMatchConfidenceSpec
impl Send for DetectorPostMatchConfidenceSpec
impl Sync for DetectorPostMatchConfidenceSpec
impl Unpin for DetectorPostMatchConfidenceSpec
impl UnsafeUnpin for DetectorPostMatchConfidenceSpec
impl UnwindSafe for DetectorPostMatchConfidenceSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more