C# Class Ocronet.Dynamic.OcroFST.OcroFSTImpl

Inheritance: OcroFST
Mostra file Open project: nickun/OCRonet

Public Methods

Method Description
AcceptCost ( int vertex ) : float
AddTransition ( int from, int to, int output, float cost, int input ) : void
Arcs ( Intarray out_inputs, Intarray out_targets, Intarray out_outputs, Floatarray out_costs, int from ) : void
BestPath ( string &result ) : double
CalculateHeuristics ( ) : void
Clear ( ) : void
ClearFlags ( ) : void
Costs ( int vertex ) : Floatarray
GetAcceptCost ( int node ) : float
GetStart ( ) : int
HasFlag ( int flag ) : bool
Heuristics ( ) : Floatarray
Inputs ( int vertex ) : Intarray
Load ( BinaryReader reader ) : void
NewState ( ) : int
OcroFSTImpl ( ) : System
OcroFSTImpl ( int max_size ) : System
Outputs ( int vertex ) : Intarray
Rescore ( int from, int to, int output, float cost, int input ) : void
Save ( BinaryWriter writer ) : void
SetAccept ( int node, float cost = 0.0f ) : void
SetAcceptCost ( int vertex, float new_value ) : void
SetStart ( int node ) : void
SortByInput ( ) : void
SortByOutput ( ) : void
Special ( string s ) : int
Targets ( int vertex ) : Intarray
nStates ( ) : int

Protected Methods

Method Description
CorrectCostsNull ( int vertex ) : void
CorrectInputsNull ( int vertex ) : void
CorrectOutputsNull ( int vertex ) : void
CorrectTargetsNull ( int vertex ) : void

Private Methods

Method Description
achieve ( int flag ) : void

Method Details

AcceptCost() public method

public AcceptCost ( int vertex ) : float
vertex int
return float

AddTransition() public method

public AddTransition ( int from, int to, int output, float cost, int input ) : void
from int
to int
output int
cost float
input int
return void

Arcs() public method

public Arcs ( Intarray out_inputs, Intarray out_targets, Intarray out_outputs, Floatarray out_costs, int from ) : void
out_inputs Intarray
out_targets Intarray
out_outputs Intarray
out_costs Floatarray
from int
return void

BestPath() public method

public BestPath ( string &result ) : double
result string
return double

CalculateHeuristics() public method

public CalculateHeuristics ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

ClearFlags() public method

public ClearFlags ( ) : void
return void

CorrectCostsNull() protected method

protected CorrectCostsNull ( int vertex ) : void
vertex int
return void

CorrectInputsNull() protected method

protected CorrectInputsNull ( int vertex ) : void
vertex int
return void

CorrectOutputsNull() protected method

protected CorrectOutputsNull ( int vertex ) : void
vertex int
return void

CorrectTargetsNull() protected method

protected CorrectTargetsNull ( int vertex ) : void
vertex int
return void

Costs() public method

public Costs ( int vertex ) : Floatarray
vertex int
return Floatarray

GetAcceptCost() public method

public GetAcceptCost ( int node ) : float
node int
return float

GetStart() public method

public GetStart ( ) : int
return int

HasFlag() public method

public HasFlag ( int flag ) : bool
flag int
return bool

Heuristics() public method

public Heuristics ( ) : Floatarray
return Floatarray

Inputs() public method

public Inputs ( int vertex ) : Intarray
vertex int
return Intarray

Load() public method

public Load ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

NewState() public method

public NewState ( ) : int
return int

OcroFSTImpl() public method

public OcroFSTImpl ( ) : System
return System

OcroFSTImpl() public method

public OcroFSTImpl ( int max_size ) : System
max_size int
return System

Outputs() public method

public Outputs ( int vertex ) : Intarray
vertex int
return Intarray

Rescore() public method

public Rescore ( int from, int to, int output, float cost, int input ) : void
from int
to int
output int
cost float
input int
return void

Save() public method

public Save ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

SetAccept() public method

public SetAccept ( int node, float cost = 0.0f ) : void
node int
cost float
return void

SetAcceptCost() public method

public SetAcceptCost ( int vertex, float new_value ) : void
vertex int
new_value float
return void

SetStart() public method

public SetStart ( int node ) : void
node int
return void

SortByInput() public method

public SortByInput ( ) : void
return void

SortByOutput() public method

public SortByOutput ( ) : void
return void

Special() public method

public Special ( string s ) : int
s string
return int

Targets() public method

public Targets ( int vertex ) : Intarray
vertex int
return Intarray

nStates() public method

public nStates ( ) : int
return int