pub struct CounterpartyRisk {
pub high_risk_counterparty_ratio: f64,
pub avg_counterparty_risk_score: f64,
pub risk_concentration: f64,
pub anomalous_counterparty_count: usize,
pub high_risk_exposure: f64,
}Expand description
Counterparty risk features for a node.
Fields§
§high_risk_counterparty_ratio: f64Ratio of high-risk counterparties.
avg_counterparty_risk_score: f64Average risk score of counterparties.
risk_concentration: f64Concentration of risk in few counterparties.
anomalous_counterparty_count: usizeNumber of anomalous counterparties.
high_risk_exposure: f64Total exposure to high-risk counterparties (by amount).
Implementations§
Source§impl CounterpartyRisk
impl CounterpartyRisk
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 the number of features.
Sourcepub fn feature_names() -> Vec<&'static str>
pub fn feature_names() -> Vec<&'static str>
Returns feature names.
Trait Implementations§
Source§impl Clone for CounterpartyRisk
impl Clone for CounterpartyRisk
Source§fn clone(&self) -> CounterpartyRisk
fn clone(&self) -> CounterpartyRisk
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 CounterpartyRisk
impl Debug for CounterpartyRisk
Source§impl Default for CounterpartyRisk
impl Default for CounterpartyRisk
Source§fn default() -> CounterpartyRisk
fn default() -> CounterpartyRisk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CounterpartyRisk
impl<'de> Deserialize<'de> for CounterpartyRisk
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 CounterpartyRisk
impl RefUnwindSafe for CounterpartyRisk
impl Send for CounterpartyRisk
impl Sync for CounterpartyRisk
impl Unpin for CounterpartyRisk
impl UnwindSafe for CounterpartyRisk
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