Note: This project is work in progress and currently not stable.
tpattern
is a Scala library for detecting temporal patterns in event data. The library implements the algorithms described in: Magnusson, Magnus S. "Discovering hidden time patterns in behavior: T-patterns and their detection." Behavior Research Methods, Instruments, & Computers 32.1 (2000): 93-110.
- Free algorithm for T-Pattern detection
- Fast algorithm for T-Pattern detection
- Critical interval calculation based on start times and switches between events
- Detecting T-Pattern online in streaming data
val ci = new TimeBasedCriticalIntervalMeasures()
.setSignificance(0.0001)
val detector = new FastTPatternDetector()
.setMinimumOccurrences(new FixedOccurrenceThreshold(2))
.setCriticalIntervalMeasures(ci)
.setSubPatternThreshold(0.6)
val result = detector.detect(events)