Generated on for Gecode by doxygen 1.17.0
common-pattern.hh File Reference
#include <gecode/int.hh>
#include <gecode/minimodel.hh>
#include <algorithm>
#include <charconv>
#include <functional>
#include <istream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

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

Namespaces

namespace  PatternMining

Typedefs

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

Enumerations

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

Functions

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