pub struct LineItemDistributionConfig {
pub two_items: f64,
pub three_items: f64,
pub four_items: f64,
pub five_items: f64,
pub six_items: f64,
pub seven_items: f64,
pub eight_items: f64,
pub nine_items: f64,
pub ten_to_ninety_nine: f64,
pub hundred_to_nine_ninety_nine: f64,
pub thousand_plus: f64,
}Expand description
Configuration for line item count distribution.
Based on empirical findings from Table III of the accounting network paper.
Fields§
§two_items: f64Probability of 2 line items (60.68%)
three_items: f64Probability of 3 line items (5.77%)
four_items: f64Probability of 4 line items (16.63%)
five_items: f64Probability of 5 line items (3.06%)
six_items: f64Probability of 6 line items (3.32%)
seven_items: f64Probability of 7 line items (1.13%)
eight_items: f64Probability of 8 line items (1.88%)
nine_items: f64Probability of 9 line items (0.42%)
ten_to_ninety_nine: f64Probability of 10-99 line items (6.33%)
hundred_to_nine_ninety_nine: f64Probability of 100-999 line items (0.76%)
thousand_plus: f64Probability of 1000+ line items (0.02%)
Implementations§
Source§impl LineItemDistributionConfig
impl LineItemDistributionConfig
Sourcepub fn paper_reference() -> Self
pub fn paper_reference() -> Self
The paper’s Table III line-count distribution (mean ≈ 11), preserved as
a named reference. The crate Default was re-calibrated toward the
observed corpus (mean ≈ 4.5; experiments/ml/FINDINGS.md §1), so use this
when you specifically want the original cited reference — e.g. the
copula smoke tests, which need wide line-count spread to exercise the
amount↔line_count rank correlation independent of the corpus default.
Trait Implementations§
Source§impl Clone for LineItemDistributionConfig
impl Clone for LineItemDistributionConfig
Source§fn clone(&self) -> LineItemDistributionConfig
fn clone(&self) -> LineItemDistributionConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LineItemDistributionConfig
impl Debug for LineItemDistributionConfig
Source§impl Default for LineItemDistributionConfig
impl Default for LineItemDistributionConfig
Source§impl<'de> Deserialize<'de> for LineItemDistributionConfig
impl<'de> Deserialize<'de> for LineItemDistributionConfig
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>,
Auto Trait Implementations§
impl Freeze for LineItemDistributionConfig
impl RefUnwindSafe for LineItemDistributionConfig
impl Send for LineItemDistributionConfig
impl Sync for LineItemDistributionConfig
impl Unpin for LineItemDistributionConfig
impl UnsafeUnpin for LineItemDistributionConfig
impl UnwindSafe for LineItemDistributionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.