Home
last modified time | relevance | path

Searched refs:TropicalWeight (Results 1 – 14 of 14) sorted by relevance

/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dfloat-weight.h116 class TropicalWeight : public FloatWeight {
118 typedef TropicalWeight ReverseWeight;
120 TropicalWeight() : FloatWeight() {} in TropicalWeight() function
122 TropicalWeight(float f) : FloatWeight(f) {} in TropicalWeight() function
124 TropicalWeight(const TropicalWeight &w) : FloatWeight(w) {} in TropicalWeight() function
126 static const TropicalWeight Zero() { return TropicalWeight(kPosInfinity); } in Zero()
128 static const TropicalWeight One() { return TropicalWeight(0.0F); } in One()
140 TropicalWeight Quantize(float delta = kDelta) const {
141 return TropicalWeight(floor(Value()/delta + 0.5F) * delta);
144 TropicalWeight Reverse() const { return *this; } in Reverse()
[all …]
Dfst-decl.h28 class TropicalWeight; variable
Drandom-weight.h39 typedef TropicalWeight Weight;
Darc.h32 typedef TropicalWeight Weight;
Dvector-fst.h405 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) { in operator()
408 return TropicalWeight(f); in operator()
/external/openfst/src/include/fst/
Dsigned-log-weight.h33 : public PairWeight<TropicalWeight, LogWeightTpl<T> > {
35 typedef TropicalWeight X1;
97 h1 = TropicalWeight(1.0).Hash(); in Hash()
99 h1 = TropicalWeight(-1.0).Hash(); in Hash()
161 return SignedLogWeightTpl<T>(TropicalWeight(1.0), (f1 + f2)); in Times()
163 return SignedLogWeightTpl<T>(TropicalWeight(-1.0), (f1 + f2)); in Times()
177 return SignedLogWeightTpl<T>(TropicalWeight(1.0),
180 return SignedLogWeightTpl<T>(TropicalWeight(1.0),
183 return SignedLogWeightTpl<T>(TropicalWeight(1.0), (f1 - f2));
185 return SignedLogWeightTpl<T>(TropicalWeight(-1.0), (f1 - f2));
[all …]
Dfloat-weight.h236 typedef TropicalWeightTpl<float> TropicalWeight; typedef
565 struct WeightConvert<LogWeight, TropicalWeight> {
566 TropicalWeight operator()(LogWeight w) const { return w.Value(); }
570 struct WeightConvert<Log64Weight, TropicalWeight> {
571 TropicalWeight operator()(Log64Weight w) const { return w.Value(); }
576 struct WeightConvert<TropicalWeight, LogWeight> {
577 LogWeight operator()(TropicalWeight w) const { return w.Value(); }
587 struct WeightConvert<TropicalWeight, Log64Weight> {
588 Log64Weight operator()(TropicalWeight w) const { return w.Value(); }
Dfst-decl.h38 typedef TropicalWeightTpl<float> TropicalWeight; typedef
43 typedef ArcTpl<TropicalWeight> StdArc;
Drandom-weight.h304 TropicalWeight(-1.0) : in operator()
305 TropicalWeight(1.0), in operator()
Dvector-fst.h392 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) { in operator()
395 return TropicalWeight(f); in operator()
Darc.h66 typedef ArcTpl<TropicalWeight> StdArc;
/external/openfst/src/test/
Dweight_test.cc32 using fst::TropicalWeight;
113 CHECK(TropicalWeight::Type() == "tropical"); in main()
118 TropicalWeight tw(15.0); in main()
131 typedef GallicWeight<int, TropicalWeight> TropicalGallicWeight; in main()
140 typedef ProductWeight<TropicalWeight, TropicalWeight> TropicalProductWeight; in main()
149 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight; in main()
158 typedef ProductWeight<TropicalWeight, TropicalProductWeight> in main()
169 typedef ProductWeight<TropicalProductWeight, TropicalWeight> in main()
244 typedef LexicographicWeight<TropicalWeight, TropicalWeight> in main()
Dalgo_test.cc57 using fst::TropicalWeight;
130 typedef LexicographicArc<TropicalWeight, TropicalWeight> in main()
141 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight; in main()
Dfst_test.cc34 typedef ProductWeight<TropicalWeight, LogWeight> Weight;