pub struct ClassDensity {
pub hits: usize,
pub residual_hits: usize,
pub per_1k_words: Option<f64>,
pub residual_per_1k_words: Option<f64>,
}Expand description
Per-class hit counts and rates for the quality_patterns category. The figures are measurements the agent previously assembled by hand. No threshold or verdict is attached to any of them.
Fields§
§hits: usizeAll findings of the class.
residual_hits: usizeFindings of the class in the prose container and not marked
topic_term. This residual count appears beside hits so the reader
can weigh prose separately from quoted content and topic vocabulary.
per_1k_words: Option<f64>hits * 1000 / word_count. null below the 100-word density
floor, where short texts quantize and the figure means nothing.
residual_per_1k_words: Option<f64>residual_hits * 1000 / word_count, same floor.
Trait Implementations§
Source§impl Clone for ClassDensity
impl Clone for ClassDensity
impl Copy for ClassDensity
Source§impl Debug for ClassDensity
impl Debug for ClassDensity
Source§impl Default for ClassDensity
impl Default for ClassDensity
Source§impl PartialEq for ClassDensity
impl PartialEq for ClassDensity
Source§impl Serialize for ClassDensity
impl Serialize for ClassDensity
impl StructuralPartialEq for ClassDensity
Auto Trait Implementations§
impl Freeze for ClassDensity
impl RefUnwindSafe for ClassDensity
impl Send for ClassDensity
impl Sync for ClassDensity
impl Unpin for ClassDensity
impl UnsafeUnpin for ClassDensity
impl UnwindSafe for ClassDensity
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