pub struct SectorAttribution {
pub sector: Sector,
pub allocation_effect: f64,
pub selection_effect: f64,
pub interaction_effect: f64,
pub total_active_return: f64,
}Expand description
Computed attribution effects for a single sector.
Fields§
§sector: SectorSector inputs used in computation.
allocation_effect: f64Allocation effect: (w_p - w_b) * (r_b_sector - R_b).
selection_effect: f64Selection effect: w_b * (r_p - r_b).
interaction_effect: f64Interaction effect: (w_p - w_b) * (r_p - r_b).
total_active_return: f64Total active return for this sector: allocation + selection + interaction.
Trait Implementations§
Source§impl Clone for SectorAttribution
impl Clone for SectorAttribution
Auto Trait Implementations§
impl Freeze for SectorAttribution
impl RefUnwindSafe for SectorAttribution
impl Send for SectorAttribution
impl Sync for SectorAttribution
impl Unpin for SectorAttribution
impl UnsafeUnpin for SectorAttribution
impl UnwindSafe for SectorAttribution
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