pub struct HarmonicConfig {
pub ratio_tolerance: f64,
pub min_score: f64,
pub min_size_atr: f64,
pub atr_period: usize,
pub detect_abcd: bool,
pub detect_alternate_abcd: bool,
pub detect_5_0: bool,
pub detect_xabcd: bool,
}Expand description
Tunable detection thresholds.
Fields§
§ratio_tolerance: f64Relative tolerance on equality ratios and range-gate edges (e.g. 0.10 = ±10%).
min_score: f64Minimum fit score to emit a pattern.
min_size_atr: f64Minimum pattern extent in ATR units (0.0 disables the filter).
atr_period: usize§detect_abcd: bool§detect_alternate_abcd: bool§detect_5_0: bool§detect_xabcd: boolEnable the XABCD (Gartley / Bat / Butterfly / Crab / Alternate Bat) family;
filter the output by kind for finer control.
Trait Implementations§
Source§impl Clone for HarmonicConfig
impl Clone for HarmonicConfig
Source§impl Debug for HarmonicConfig
impl Debug for HarmonicConfig
Auto Trait Implementations§
impl Forget for HarmonicConfig
impl Freeze for HarmonicConfig
impl RefUnwindSafe for HarmonicConfig
impl Send for HarmonicConfig
impl Sync for HarmonicConfig
impl Unpin for HarmonicConfig
impl UnsafeUnpin for HarmonicConfig
impl UnwindSafe for HarmonicConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.