pub fn detect_patterns(
storage: &dyn StorageBackend,
namespace: Option<&str>,
min_frequency: usize,
total_sessions: usize,
) -> Result<Vec<DetectedPattern>, CodememError>Expand description
Detect all patterns in the memory store.
Runs multiple detectors and returns all patterns found, sorted by confidence
descending. The min_frequency parameter controls the threshold for how many
times a pattern must appear before it is flagged. total_sessions is used for
log-scaled confidence computation.