pub struct AmountDistributionAnalysis {Show 17 fields
pub sample_size: usize,
pub mean: Decimal,
pub median: Decimal,
pub std_dev: Decimal,
pub min: Decimal,
pub max: Decimal,
pub percentile_1: Decimal,
pub percentile_99: Decimal,
pub skewness: f64,
pub kurtosis: f64,
pub lognormal_ks_stat: Option<f64>,
pub lognormal_ks_pvalue: Option<f64>,
pub fitted_mu: Option<f64>,
pub fitted_sigma: Option<f64>,
pub round_number_ratio: f64,
pub nice_number_ratio: f64,
pub passes: bool,
}Expand description
Results of amount distribution analysis.
Fields§
§sample_size: usizeNumber of samples analyzed.
mean: DecimalMean amount.
median: DecimalMedian amount.
std_dev: DecimalStandard deviation.
min: DecimalMinimum amount.
max: DecimalMaximum amount.
percentile_1: Decimal1st percentile.
percentile_99: Decimal99th percentile.
skewness: f64Skewness (positive = right-skewed, typical for financial data).
kurtosis: f64Kurtosis (excess kurtosis, 0 = normal distribution).
lognormal_ks_stat: Option<f64>Kolmogorov-Smirnov statistic against log-normal.
lognormal_ks_pvalue: Option<f64>P-value from KS test.
fitted_mu: Option<f64>Fitted log-normal mu parameter.
fitted_sigma: Option<f64>Fitted log-normal sigma parameter.
round_number_ratio: f64Ratio of round numbers (ending in .00).
nice_number_ratio: f64Ratio of nice numbers (ending in 0 or 5).
passes: boolWhether test passes thresholds.
Trait Implementations§
Source§impl Clone for AmountDistributionAnalysis
impl Clone for AmountDistributionAnalysis
Source§fn clone(&self) -> AmountDistributionAnalysis
fn clone(&self) -> AmountDistributionAnalysis
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 AmountDistributionAnalysis
impl Debug for AmountDistributionAnalysis
Source§impl<'de> Deserialize<'de> for AmountDistributionAnalysis
impl<'de> Deserialize<'de> for AmountDistributionAnalysis
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 AmountDistributionAnalysis
impl RefUnwindSafe for AmountDistributionAnalysis
impl Send for AmountDistributionAnalysis
impl Sync for AmountDistributionAnalysis
impl Unpin for AmountDistributionAnalysis
impl UnwindSafe for AmountDistributionAnalysis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.