[][src]Struct loan_ec::Loan

pub struct Loan {
    pub balance: f64,
    pub pd: f64,
    pub lgd: f64,
    pub weight: Vec<f64>,
    pub r: f64,
    pub lgd_variance: f64,
    pub num: f64,
}

Struct representing loan attributes

Fields

balance: f64

Balance for the loan (in dollars)

pd: f64

Annualized probability of default. Can be point in time or through the cycle.

lgd: f64

Expected value of the loss given default for the loan. A positive number.

weight: Vec<f64>

Vector of weights describing the exposure of this loan to each systemic variable.

r: f64

Amount of liquidity exposure as a percent of the balance. A positive number.

lgd_variance: f64

Variance of the loss given default for the loan.

num: f64

The number of loans that have these features. Grouping loans into single Loan structs can vastly improve computation time.

Trait Implementations

impl Debug for Loan[src]

impl<'de> Deserialize<'de> for Loan[src]

Auto Trait Implementations

impl RefUnwindSafe for Loan

impl Send for Loan

impl Sync for Loan

impl Unpin for Loan

impl UnwindSafe for Loan

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.