pub enum AllocationMethod {
Custom,
EqualWeight,
InverseVol {
lookback: usize,
},
Hrp,
}Expand description
Allocation method for portfolio composition.
Variants§
Custom
Use weights as provided (user-specified).
EqualWeight
Equal weight: 1/N for each leg.
InverseVol
Inverse volatility: allocate inversely proportional to trailing vol.
Hrp
Hierarchical Risk Parity: correlation-aware diversification weights.
Trait Implementations§
Source§impl Clone for AllocationMethod
impl Clone for AllocationMethod
Source§fn clone(&self) -> AllocationMethod
fn clone(&self) -> AllocationMethod
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 AllocationMethod
impl Debug for AllocationMethod
Source§impl PartialEq for AllocationMethod
impl PartialEq for AllocationMethod
impl Eq for AllocationMethod
impl StructuralPartialEq for AllocationMethod
Auto Trait Implementations§
impl Freeze for AllocationMethod
impl RefUnwindSafe for AllocationMethod
impl Send for AllocationMethod
impl Sync for AllocationMethod
impl Unpin for AllocationMethod
impl UnsafeUnpin for AllocationMethod
impl UnwindSafe for AllocationMethod
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