pub struct AggregatedFeatures {
pub total_volume: f64,
pub avg_transaction_size: f64,
pub combined_risk_score: f64,
pub internal_flow_ratio: f64,
pub external_flow_ratio: f64,
pub external_counterparty_count: usize,
pub activity_variance: f64,
pub member_count: usize,
}Expand description
Aggregated features for an entity group.
Fields§
§total_volume: f64Total transaction volume within the group.
avg_transaction_size: f64Average transaction size.
combined_risk_score: f64Combined risk score for the group.
internal_flow_ratio: f64Ratio of internal flows to total.
external_flow_ratio: f64Ratio of external flows to total.
external_counterparty_count: usizeNumber of unique external counterparties.
activity_variance: f64Variance in member activity.
member_count: usizeNumber of members.
Implementations§
Source§impl AggregatedFeatures
impl AggregatedFeatures
Sourcepub fn to_features(&self) -> Vec<f64>
pub fn to_features(&self) -> Vec<f64>
Converts to a feature vector.
Sourcepub fn feature_count() -> usize
pub fn feature_count() -> usize
Returns feature count.
Sourcepub fn feature_names() -> Vec<&'static str>
pub fn feature_names() -> Vec<&'static str>
Returns feature names.
Trait Implementations§
Source§impl Clone for AggregatedFeatures
impl Clone for AggregatedFeatures
Source§fn clone(&self) -> AggregatedFeatures
fn clone(&self) -> AggregatedFeatures
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 AggregatedFeatures
impl Debug for AggregatedFeatures
Source§impl Default for AggregatedFeatures
impl Default for AggregatedFeatures
Source§fn default() -> AggregatedFeatures
fn default() -> AggregatedFeatures
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AggregatedFeatures
impl<'de> Deserialize<'de> for AggregatedFeatures
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 AggregatedFeatures
impl RefUnwindSafe for AggregatedFeatures
impl Send for AggregatedFeatures
impl Sync for AggregatedFeatures
impl Unpin for AggregatedFeatures
impl UnwindSafe for AggregatedFeatures
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