pub struct PatternRecognizer { /* private fields */ }Expand description
A fő minta felismerő rendszer
Implementations§
Source§impl PatternRecognizer
impl PatternRecognizer
pub fn new() -> Self
pub fn with_config(config: RecognitionConfig) -> Self
Sourcepub fn register_pattern(
&self,
name: &str,
ptype: PatternType,
template: PatternTemplate,
domain: &str,
tags: Vec<String>,
) -> u64
pub fn register_pattern( &self, name: &str, ptype: PatternType, template: PatternTemplate, domain: &str, tags: Vec<String>, ) -> u64
Új minta regisztrálása
Sourcepub fn forget_pattern(&self, id: u64) -> bool
pub fn forget_pattern(&self, id: u64) -> bool
Minta törlése
Sourcepub fn list_patterns(
&self,
ptype: Option<PatternType>,
domain: Option<&str>,
) -> Vec<RecognizedPattern>
pub fn list_patterns( &self, ptype: Option<PatternType>, domain: Option<&str>, ) -> Vec<RecognizedPattern>
Minták listázása típus szerint
Sourcepub fn find_pattern(&self, name: &str) -> Option<RecognizedPattern>
pub fn find_pattern(&self, name: &str) -> Option<RecognizedPattern>
Minta keresés név alapján
Sourcepub fn get_pattern(&self, id: u64) -> Option<RecognizedPattern>
pub fn get_pattern(&self, id: u64) -> Option<RecognizedPattern>
Minta lekérése ID alapján
Sourcepub fn find_sequences(
&self,
elements: &[String],
domain: &str,
) -> Vec<RecognizedPattern>
pub fn find_sequences( &self, elements: &[String], domain: &str, ) -> Vec<RecognizedPattern>
Szekvencia minta felismerés: gyakori részsorozatok keresése Bemenet: elemek sorozata (pl. block id-k, műveletek, események) Kimenet: ismétlődő minták confidenciával
Sourcepub fn match_sequence(&self, sequence: &[String]) -> Vec<PatternMatch>
pub fn match_sequence(&self, sequence: &[String]) -> Vec<PatternMatch>
Adott szekvencia egyeztetése ismert mintákkal
Sourcepub fn find_temporal_patterns(
&self,
events: &[(u64, String, f64)],
domain: &str,
) -> Vec<RecognizedPattern>
pub fn find_temporal_patterns( &self, events: &[(u64, String, f64)], domain: &str, ) -> Vec<RecognizedPattern>
Temporális minták keresése időbélyeges eseményekből Bemenet: {timestamp_ms, id, intensity} triplek Kimenet: napi/heti ritmusok
Sourcepub fn find_motifs(
&self,
edges: &[(String, String, f64)],
domain: &str,
) -> Vec<RecognizedPattern>
pub fn find_motifs( &self, edges: &[(String, String, f64)], domain: &str, ) -> Vec<RecognizedPattern>
Strukturális motívumok keresése gráfban (pl. morphogenesis által növesztett architektúrákban) Bemenet: adjacencia lista (from, to, weight) Kimenet: gyakori algráf minták (motívumok)
Sourcepub fn find_motifs_in_organism(
&self,
_nodes: &[MorphNode],
connections: &[MorphConnection],
) -> Vec<RecognizedPattern>
pub fn find_motifs_in_organism( &self, _nodes: &[MorphNode], connections: &[MorphConnection], ) -> Vec<RecognizedPattern>
Strukturális motívum keresés morphogenesis organizmusokban
Sourcepub fn find_clusters(
&self,
points: &[(f64, f64, f64, String)],
domain: &str,
) -> Vec<RecognizedPattern>
pub fn find_clusters( &self, points: &[(f64, f64, f64, String)], domain: &str, ) -> Vec<RecognizedPattern>
Térbeli klaszterek keresése pontfelhőben (DBSCAN-szerű) Bemenet: (x, y, z) koordináták + id Kimenet: csoportosulások a memória térben
Sourcepub fn cross_correlate(&self) -> Vec<RecognizedPattern>
pub fn cross_correlate(&self) -> Vec<RecognizedPattern>
Különböző domain-ekből származó minták korrelációja Keres olyan mintákat, amelyek több domain-ben is előfordulnak (pl. ugyanaz a szekvencia megjelenik thought és recall domain-ben is)
Sourcepub fn consolidate(&self) -> usize
pub fn consolidate(&self) -> usize
Hasonló minták összevonása, gyenge minták elfelejtése
Sourcepub fn recent_matches(&self, k: usize) -> Vec<PatternMatch>
pub fn recent_matches(&self, k: usize) -> Vec<PatternMatch>
Friss egyezések lekérése
Sourcepub fn set_config(&self, config: RecognitionConfig)
pub fn set_config(&self, config: RecognitionConfig)
Konfiguráció frissítése
Sourcepub fn get_config(&self) -> RecognitionConfig
pub fn get_config(&self) -> RecognitionConfig
Konfiguráció olvasása
Sourcepub fn list_domains(&self) -> Vec<String>
pub fn list_domains(&self) -> Vec<String>
Domain-ek listázása
Sourcepub fn domain_pattern_count(&self, domain: &str) -> usize
pub fn domain_pattern_count(&self, domain: &str) -> usize
Domain szerinti minta szám
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternRecognizer
impl RefUnwindSafe for PatternRecognizer
impl Send for PatternRecognizer
impl Sync for PatternRecognizer
impl Unpin for PatternRecognizer
impl UnsafeUnpin for PatternRecognizer
impl UnwindSafe for PatternRecognizer
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more