Searched refs:TropicalWeight (Results 1 – 14 of 14) sorted by relevance
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
D | float-weight.h | 116 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 …]
|
D | fst-decl.h | 28 class TropicalWeight; variable
|
D | random-weight.h | 39 typedef TropicalWeight Weight;
|
D | arc.h | 32 typedef TropicalWeight Weight;
|
D | vector-fst.h | 405 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) { in operator() 408 return TropicalWeight(f); in operator()
|
/external/openfst/src/include/fst/ |
D | signed-log-weight.h | 33 : 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 …]
|
D | float-weight.h | 236 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(); }
|
D | fst-decl.h | 38 typedef TropicalWeightTpl<float> TropicalWeight; typedef 43 typedef ArcTpl<TropicalWeight> StdArc;
|
D | random-weight.h | 304 TropicalWeight(-1.0) : in operator() 305 TropicalWeight(1.0), in operator()
|
D | vector-fst.h | 392 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) { in operator() 395 return TropicalWeight(f); in operator()
|
D | arc.h | 66 typedef ArcTpl<TropicalWeight> StdArc;
|
/external/openfst/src/test/ |
D | weight_test.cc | 32 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()
|
D | algo_test.cc | 57 using fst::TropicalWeight; 130 typedef LexicographicArc<TropicalWeight, TropicalWeight> in main() 141 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight; in main()
|
D | fst_test.cc | 34 typedef ProductWeight<TropicalWeight, LogWeight> Weight;
|