-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMarkovChainCompiler.H
More file actions
25 lines (20 loc) · 846 Bytes
/
MarkovChainCompiler.H
File metadata and controls
25 lines (20 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/****************************************************************
MarkovChainCompiler.H
Copyright (C)2013 William H. Majoros (martiandna@gmail.com).
This is OPEN SOURCE SOFTWARE governed by the Gnu General Public
License (GPL) version 3, as described at www.opensource.org.
****************************************************************/
#ifndef INCL_MarkovChainCompiler_H
#define INCL_MarkovChainCompiler_H
#include "MarkovChain.H"
#include "FastMarkovChain.H"
class MarkovChainCompiler
{
static FastMarkovChain *compileForward(ContentSensor &);
static FastMarkovChain *compileReverse(ContentSensor &);
public:
static FastMarkovChain *compile(ContentSensor &MC_or_IMM_non_periodic);
static BOOM::String stateToString(int state,FastMarkovChain &);
static int stringToState(const BOOM::String &,FastMarkovChain &);
};
#endif