pub struct Sample {Show 19 fields
pub symbol: u16,
pub date: NaiveDate,
pub split: Split,
pub x: Vec<f64>,
pub mag_x: Vec<f64>,
pub fwd: [f64; 4],
pub barrier: f64,
pub excess: [f64; 4],
pub vol: f64,
pub close: f64,
pub classic_score: f64,
pub alive: bool,
pub comp: u8,
pub fired_start: bool,
pub phase: f64,
pub energy: f64,
pub tier21: u8,
pub tier10: u8,
pub bars_in_squeeze: usize,
}Expand description
One (symbol, bar) observation.
Fields§
§symbol: u16§date: NaiveDate§split: Split§x: Vec<f64>§mag_x: Vec<f64>Direction-free inputs for the movement model.
fwd: [f64; 4]Real forward log return for each of HORIZONS; NaN if unavailable.
barrier: f64+1 if the upper barrier was touched first, -1 lower, 0 neither / both.
excess: [f64; 4]Forward log return of the symbol minus SPY’s, per horizon.
vol: f64Daily volatility at the cutoff, so moves can be expressed in σ units.
close: f64§classic_score: f64§alive: bool§comp: u8§fired_start: bool§phase: f64τ/θ: how far through its expected life the current fire is (NaN if not fired).
energy: f64§tier21: u8§tier10: u8§bars_in_squeeze: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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