Lines Matching full:weight
1 // random-weight.h
26 #include "fst/lib/float-weight.h"
27 #include "fst/lib/product-weight.h"
28 #include "fst/lib/string-weight.h"
33 // divisors should be returned in the random weight generation.
39 typedef TropicalWeight Weight;
46 Weight operator() () const {
49 return Weight::Zero();
51 return Weight(static_cast<float>(n));
66 typedef LogWeight Weight;
73 Weight operator() () const {
76 return Weight::Zero();
78 return Weight(static_cast<float>(n));
94 typedef StringWeight<L, S> Weight;
101 Weight operator() () const {
104 return Weight::Zero();
109 return Weight(v.begin(), v.end());
122 // This function object returns a weight generator over the product of the
127 typedef typename G1::Weight W1;
128 typedef typename G2::Weight W2;
129 typedef ProductWeight<W1, W2> Weight;
134 Weight operator() () const {
137 return Weight(w1, w2);
145 // Product generator of a string weight generator and an
146 // arbitrary weight generator.
153 typedef typename G::Weight W;
154 typedef GallicWeight<L, W, S> Weight;