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

/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dfloat-weight.h116 class TropicalWeight : public FloatWeight { class in namespace:fst
118 typedef TropicalWeight ReverseWeight;
120 TropicalWeight() : FloatWeight() {} function in class:fst::TropicalWeight
122 TropicalWeight(float f) : FloatWeight(f) {} function in class:fst::TropicalWeight
124 TropicalWeight(const TropicalWeight &w) : FloatWeight(w) {} function in class:fst::TropicalWeight
126 static const TropicalWeight Zero() { return TropicalWeight(kPosInfinity); }
128 static const TropicalWeight One() { return TropicalWeight(0.
[all...]
H A Dfst-decl.h28 class TropicalWeight;
H A Drandom-weight.h39 typedef TropicalWeight Weight;
H A Darc.h32 typedef TropicalWeight Weight;
H A Dvector-fst.h403 // TropicalWeight version.
405 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) {
408 return TropicalWeight(f);
/external/openfst/src/include/fst/
H A Dsigned-log-weight.h19 // The sign is a TropicalWeight:
20 // positive, TropicalWeight.Value() > 0.0, recommended value 1.0
21 // negative, TropicalWeight.Value() <= 0.0, recommended value -1.0
33 : public PairWeight<TropicalWeight, LogWeightTpl<T> > {
35 typedef TropicalWeight X1;
97 h1 = TropicalWeight(1.0).Hash();
99 h1 = TropicalWeight(-1.0).Hash();
161 return SignedLogWeightTpl<T>(TropicalWeight(1.0), (f1 + f2));
163 return SignedLogWeightTpl<T>(TropicalWeight(-1.0), (f1 + f2));
177 return SignedLogWeightTpl<T>(TropicalWeight(1.
[all...]
H A Dfloat-weight.h239 typedef TropicalWeightTpl<float> TropicalWeight; typedef in namespace:fst
568 struct WeightConvert<LogWeight, TropicalWeight> {
569 TropicalWeight operator()(LogWeight w) const { return w.Value(); }
573 struct WeightConvert<Log64Weight, TropicalWeight> {
574 TropicalWeight operator()(Log64Weight w) const { return w.Value(); }
579 struct WeightConvert<TropicalWeight, LogWeight> {
580 LogWeight operator()(TropicalWeight w) const { return w.Value(); }
590 struct WeightConvert<TropicalWeight, Log64Weight> {
591 Log64Weight operator()(TropicalWeight w) const { return w.Value(); }
H A Dfst-decl.h38 typedef TropicalWeightTpl<float> TropicalWeight; typedef in namespace:fst
43 typedef ArcTpl<TropicalWeight> StdArc;
H A Drandom-weight.h304 TropicalWeight(-1.0) :
305 TropicalWeight(1.0),
H A Darc.h67 typedef ArcTpl<TropicalWeight> StdArc;
H A Dvector-fst.h391 // TropicalWeight version.
393 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) {
396 return TropicalWeight(f);
/external/openfst/src/test/
H A Dweight_test.cc32 using fst::TropicalWeight;
113 CHECK(TropicalWeight::Type() == "tropical");
118 TropicalWeight tw(15.0);
131 typedef GallicWeight<int, TropicalWeight> TropicalGallicWeight;
140 typedef ProductWeight<TropicalWeight, TropicalWeight> TropicalProductWeight;
149 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight;
158 typedef ProductWeight<TropicalWeight, TropicalProductWeight>
169 typedef ProductWeight<TropicalProductWeight, TropicalWeight>
244 typedef LexicographicWeight<TropicalWeight, TropicalWeigh
[all...]
H A Dalgo_test.cc57 using fst::TropicalWeight;
130 typedef LexicographicArc<TropicalWeight, TropicalWeight>
141 typedef PowerWeight<TropicalWeight, 3> TropicalCubeWeight;
H A Dfst_test.cc34 typedef ProductWeight<TropicalWeight, LogWeight> Weight;

Completed in 800 milliseconds