Lines Matching defs:Weight
28 #include <fst/expectation-weight.h>
29 #include <fst/float-weight.h>
30 #include <fst/lexicographic-weight.h>
31 #include <fst/power-weight.h>
32 #include <fst/product-weight.h>
33 #include <fst/signed-log-weight.h>
34 #include <fst/sparse-power-weight.h>
38 #include <fst/string-weight.h>
46 typedef W Weight;
50 ArcTpl(Label i, Label o, const Weight& w, StateId s)
51 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
57 (Weight::Type() == "tropical") ? "standard" : Weight::Type();
63 Weight weight;
80 typedef StringWeight<int, S> Weight;
83 StringArc(Label i, Label o, Weight w, StateId s)
84 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
99 Weight weight; // Transition weight
111 typedef GallicWeight<Label, typename A::Weight, S> Weight;
115 GallicArc(Label i, Label o, Weight w, StateId s)
116 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
120 weight(arc.olabel, arc.weight), nextstate(arc.nextstate) {}
133 Weight weight; // Transition weight
138 // Arc with the reverse of the weight found in its template arg.
142 typedef typename A::Weight AWeight;
143 typedef typename AWeight::ReverseWeight Weight;
146 ReverseArc(Label i, Label o, Weight w, StateId s)
147 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
158 Weight weight; // Transition weight
167 typedef LexicographicWeight<W1, W2> Weight;
170 LexicographicArc(Label i, Label o, Weight w, StateId s)
171 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
176 static const string type = Weight::Type();
182 Weight weight; // Transition weight
191 typedef ProductWeight<W1, W2> Weight;
194 ProductArc(Label i, Label o, Weight w, StateId s)
195 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
200 static const string type = Weight::Type();
206 Weight weight; // Transition weight
212 // weights over the n-th cartesian power of the weight type of the
219 typedef PowerWeight<typename A::Weight, n> Weight;
223 PowerArc(Label i, Label o, Weight w, StateId s)
224 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
238 Weight weight; // Transition weight
244 // weights over the arbitrary cartesian power of the weight type.
250 typedef SparsePowerWeight<typename A::Weight, K> Weight;
254 SparsePowerArc(Label i, Label o, Weight w, StateId s)
255 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
270 Weight weight; // Transition weight
276 // expectation weight over the first template arg weight type and the
283 typedef typename A::Weight X1;
284 typedef ExpectationWeight<X1, X2> Weight;
288 ExpectationArc(Label i, Label o, Weight w, StateId s)
289 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
301 Weight weight; // Transition weight