pub struct ChartPatternDetector {
pub tolerance_pct: f64,
}Expand description
Scans a swing-node sequence for pattern candidates and evicts overlapping lower-confidence ones, so the result is a ranked, non-redundant set rather than every geometrically-possible match.
Fields§
§tolerance_pct: f64Implementations§
Source§impl ChartPatternDetector
impl ChartPatternDetector
pub fn new(tolerance_pct: f64) -> Self
Sourcepub fn scan(&self, nodes: &[ZigZagNode]) -> Vec<ChartPatternCandidate>
pub fn scan(&self, nodes: &[ZigZagNode]) -> Vec<ChartPatternCandidate>
Detects all supported pattern kinds over nodes, then evicts overlapping candidates
(sharing any swing node), keeping the highest-confidence one per overlapping cluster.
Auto Trait Implementations§
impl Freeze for ChartPatternDetector
impl RefUnwindSafe for ChartPatternDetector
impl Send for ChartPatternDetector
impl Sync for ChartPatternDetector
impl Unpin for ChartPatternDetector
impl UnsafeUnpin for ChartPatternDetector
impl UnwindSafe for ChartPatternDetector
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