Lines Matching refs:weight
38 #include <fst/factor-weight.h>
53 typedef typename Arc::Weight Weight;
56 Weight weight_threshold; // Pruning weight threshold.
60 Weight w = Weight::Zero(),
75 typedef typename Arc::Weight Weight;
78 vector<Weight> *distance,
83 // Compute arcs and final weight for state 's'
89 // Returns final weight of expanded state.
90 const Weight &Final() const { return final_; }
134 vector<Weight> *distance_;
147 Weight final_; // Final weight of state being expanded
161 final_ = Weight::Zero();
181 arc.weight = Times((*distance_)[state], arc.weight);
198 Weight &w = arcs_[((*it).second).second].weight;
199 w = Plus(w, arc.weight);
229 vector<typename Arc::Weight> *distance,
232 typedef typename Arc::Weight Weight;
321 if (opts.weight_threshold != Weight::Zero() ||
324 if (opts.connect && (opts.weight_threshold == Weight::Zero() ||
351 typename Arc::Weight weight_threshold = Arc::Weight::Zero(),
355 typedef typename Arc::Weight Weight;
358 vector<Weight> distance;
395 typedef typename A::Weight Weight;
439 Weight Final(StateId s) {
494 vector<Weight> distance_;