pub struct AlphaInvestingConfig {
pub initial_wealth: f64,
pub reward_fraction: f64,
pub investment_fraction: f64,
pub min_wealth: f64,
}Expand description
Configuration for the Alpha-Investing procedure.
Fields§
§initial_wealth: f64Initial wealth (significance budget). Controls the mFDR bound. Typical values: 0.05 to 0.5.
reward_fraction: f64Fraction of alpha returned on discovery. Must be in (0, 1]. Higher values make the procedure more liberal after discoveries. Foster & Stine recommend ψ = 0.5.
investment_fraction: f64Default fraction of current wealth to invest per test.
Each test spends investment_fraction * current_wealth.
Typical: 0.05 to 0.5.
min_wealth: f64Minimum wealth below which all tests are skipped. Prevents degenerate behavior near zero.
Trait Implementations§
Source§impl Clone for AlphaInvestingConfig
impl Clone for AlphaInvestingConfig
Source§fn clone(&self) -> AlphaInvestingConfig
fn clone(&self) -> AlphaInvestingConfig
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 AlphaInvestingConfig
impl Debug for AlphaInvestingConfig
Auto Trait Implementations§
impl Freeze for AlphaInvestingConfig
impl RefUnwindSafe for AlphaInvestingConfig
impl Send for AlphaInvestingConfig
impl Sync for AlphaInvestingConfig
impl Unpin for AlphaInvestingConfig
impl UnsafeUnpin for AlphaInvestingConfig
impl UnwindSafe for AlphaInvestingConfig
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