pub enum Memory {
Default,
PowerLaw {
alpha: f64,
},
PolyLog {
c: f64,
},
Fixed(usize),
}Expand description
How the growing memory p_n is chosen; the default was fixed by
benchmark. Memory::resolve turns it into a concrete window for a
sample size.
Variants§
Default
The statistic’s own default: ⌈2 log n⌉ for most statistics, the
shorter ⌈log n⌉ for the robust PACF (see
Statistic::default_memory).
PowerLaw
⌊n^alpha⌋ — the Fine–Hwang-style power rule (power_memory is
the alpha = 0.4 special case).
PolyLog
⌈c log n⌉ (polylog_memory), the window covered by the uniform
LIL bounds.
Fixed(usize)
A fixed window.
Implementations§
Trait Implementations§
impl Copy for Memory
impl StructuralPartialEq for Memory
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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