Свойство | Type | Description | |
---|---|---|---|
N | int | ||
StateCount | int | ||
VectorCount | int | ||
VectorLength | int | ||
W | int | ||
Word | string |
Méthode | Description | |
---|---|---|
AcceptWord ( string word ) : bool |
Check if this automaton accepts given word (i.e. edit distance between Word and word <= N)
|
|
GetCharacteristicVector ( char letter, int position ) : int |
Gets the characteristic vector for given letter and position.
|
|
GetNextState ( int vector ) : |
Evaluate next automaton state (without actual transition)
|
|
IsAcceptState ( int state, int offset ) : bool |
Check if given state is the accept state for given offset
|
|
LevTAutomataImitation ( string word, int n ) : System |
Initializes a new instance of the LevTAutomataImitation class.
|
|
LoadState ( int state, int offset ) : void |
Loads automaton state and offset.
|
|
NextState ( char letter ) : void |
Make transition to the next state for the given letter
|
|
NextState ( int vector ) : void |
Make transition to the next state for the given characteristic vector
|
Méthode | Description | |
---|---|---|
UpdateMatricies ( ) : void |
Select current state transition matrix and offset increment matrix
|
public AcceptWord ( string word ) : bool | ||
word | string | Word to check |
Résultat | bool |
public GetCharacteristicVector ( char letter, int position ) : int | ||
letter | char | Letter. |
position | int | Position. |
Résultat | int |
public GetNextState ( int vector ) : |
||
vector | int | Characteristic vector. |
Résultat |
public IsAcceptState ( int state, int offset ) : bool | ||
state | int | State. |
offset | int | Offset. |
Résultat | bool |
public LevTAutomataImitation ( string word, int n ) : System | ||
word | string | Word |
n | int | Maximum edit distance |
Résultat | System |
public LoadState ( int state, int offset ) : void | ||
state | int | State. |
offset | int | Offset. |
Résultat | void |
public NextState ( char letter ) : void | ||
letter | char | Letter. |
Résultat | void |