pub struct StatisticalThresholds {
pub punct_ratio: f32,
pub entropy: f32,
pub symbol_run_min: usize,
pub shingle_n: usize,
pub shingle_uniqueness: f32,
}Expand description
Thresholds for the statistical layer. Separated from DetectorConfig
so they can be overridden as a group.
Fields§
§punct_ratio: f32Ratio above which stat_punctuation_ratio_high fires.
entropy: f32Entropy (bits/char) above which stat_char_entropy_high fires.
symbol_run_min: usizeMinimum symbol-run length that fires stat_long_symbol_run.
shingle_n: usizeShingle window size for the repetition signal.
shingle_uniqueness: f32Shingle-uniqueness below which stat_low_shingle_uniqueness fires.
Trait Implementations§
Source§impl Clone for StatisticalThresholds
impl Clone for StatisticalThresholds
Source§fn clone(&self) -> StatisticalThresholds
fn clone(&self) -> StatisticalThresholds
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 StatisticalThresholds
impl Debug for StatisticalThresholds
Source§impl Default for StatisticalThresholds
impl Default for StatisticalThresholds
Source§impl<'de> Deserialize<'de> for StatisticalThresholds
impl<'de> Deserialize<'de> for StatisticalThresholds
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
Source§impl PartialEq for StatisticalThresholds
impl PartialEq for StatisticalThresholds
Source§impl Serialize for StatisticalThresholds
impl Serialize for StatisticalThresholds
impl Copy for StatisticalThresholds
impl StructuralPartialEq for StatisticalThresholds
Auto Trait Implementations§
impl Freeze for StatisticalThresholds
impl RefUnwindSafe for StatisticalThresholds
impl Send for StatisticalThresholds
impl Sync for StatisticalThresholds
impl Unpin for StatisticalThresholds
impl UnsafeUnpin for StatisticalThresholds
impl UnwindSafe for StatisticalThresholds
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