Home | History | Annotate | Download | only in fst

Lines Matching refs:distance

31 #include <fst/shortest-distance.h>
40 // the output of ShortestDistance. 'distance' is the shortest distance from the
46 const vector<typename Arc::Weight> &distance,
49 return fst.Start() < distance.size() ?
50 distance[fst.Start()] : Arc::Weight::Zero();
53 for (typename Arc::StateId s = 0; s < distance.size(); ++s)
54 sum = Plus(sum, Times(distance[s], fst.Final(s)));
102 vector<typename Arc::Weight> distance;
103 ShortestDistance(*fst, &distance, type == REWEIGHT_TO_INITIAL, delta);
106 total_weight = internal::ComputeTotalWeight(*fst, distance,
108 Reweight(fst, distance, type);