Generated on for Gecode by doxygen 1.18.0
PatternMining Namespace Reference

Classes

class  Database
 Immutable input, with dense ranks internally and original IDs externally. More...
class  Projection
 Suffixes of records supporting the assigned pattern prefix. More...
class  OpenProjection
 Private prefix projection for a growing list. More...

Typedefs

typedef std::vector< std::vector< int > > Sequences

Enumerations

enum class  Format { LETTERS , INTEGERS , SPMF }
enum class  Language {
  DEFAULT , NONE , MOTIF , RE10 ,
  RE14 , RE2
}

Functions

std::vector< int > read_sequence (const std::string &line, Format format)
 Read positive integer items or A..Z (represented by item IDs 1..26).
Sequences read_database (std::istream &stream, Format format)
 Read one sequence per line, counting duplicate rows as distinct records.
int minimum_support (const std::string &percent, int sequences)
 Round the support percentage (at most six decimals) up to a record count.
IntVar frequent (Home home, OpenIntVarList pattern, const Database &database, int support)
 Enforce minimum support and return its exact count when the pattern is complete.
REG language (Language name, const Database &database)
 Built-in motif and benchmark languages described in CommonPattern.

Typedef Documentation

◆ Sequences

typedef std::vector<std::vector<int> > PatternMining::Sequences

Definition at line 26 of file common-pattern.hh.

Enumeration Type Documentation

◆ Format

enum class PatternMining::Format
strong
Enumerator
LETTERS 
INTEGERS 
SPMF 

Definition at line 28 of file common-pattern.hh.

◆ Language

enum class PatternMining::Language
strong
Enumerator
DEFAULT 
NONE 
MOTIF 
RE10 
RE14 
RE2 

Definition at line 29 of file common-pattern.hh.

Function Documentation

◆ read_sequence()

std::vector< int > PatternMining::read_sequence ( const std::string & line,
Format format )
inline

Read positive integer items or A..Z (represented by item IDs 1..26).

Definition at line 33 of file common-pattern.hh.

◆ read_database()

Sequences PatternMining::read_database ( std::istream & stream,
Format format )
inline

Read one sequence per line, counting duplicate rows as distinct records.

Definition at line 79 of file common-pattern.hh.

◆ minimum_support()

int PatternMining::minimum_support ( const std::string & percent,
int sequences )
inline

Round the support percentage (at most six decimals) up to a record count.

Definition at line 97 of file common-pattern.hh.

◆ frequent()

IntVar PatternMining::frequent ( Home home,
OpenIntVarList pattern,
const Database & database,
int support )
inline

Enforce minimum support and return its exact count when the pattern is complete.

Definition at line 440 of file common-pattern.hh.

◆ language()

REG PatternMining::language ( Language name,
const Database & database )
inline

Built-in motif and benchmark languages described in CommonPattern.

Definition at line 456 of file common-pattern.hh.