Ocronet.Dynamic.OcroFST.AStarSearch.Loop C# (CSharp) Method

Loop() public method

public Loop ( ) : bool
return bool
        public bool Loop()
        {
            while (heap.Length() > 0)
            {
                if (Step())
                    return true;
            }
            return false;
        }

Usage Example

コード例 #1
0
ファイル: AStarUtil.cs プロジェクト: nickun/OCRonet
 public static void a_star_backwards(Floatarray costs_for_all_nodes, IGenericFst fst)
 {
     IGenericFst reverse = FstFactory.MakeOcroFST();
     FstUtil.fst_copy_reverse(reverse, fst, true); // creates an extra vertex
     AStarSearch a = new AStarSearch(reverse);
     a.Loop();
     costs_for_all_nodes.Copy(a.g);
     costs_for_all_nodes.Pop(); // remove the extra vertex
 }
All Usage Examples Of Ocronet.Dynamic.OcroFST.AStarSearch::Loop