Searched refs:LogWeight (Results 1 – 12 of 12) sorted by relevance
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
D | float-weight.h | 182 class LogWeight : public FloatWeight { 184 typedef LogWeight ReverseWeight; 186 LogWeight() : FloatWeight() {} in LogWeight() function 188 LogWeight(float f) : FloatWeight(f) {} in LogWeight() function 190 LogWeight(const LogWeight &w) : FloatWeight(w) {} in LogWeight() function 192 static const LogWeight Zero() { return LogWeight(kPosInfinity); } in Zero() 194 static const LogWeight One() { return LogWeight(0.0F); } in One() 206 LogWeight Quantize(float delta = kDelta) const { 207 return LogWeight(floor(Value()/delta + 0.5F) * delta); 210 LogWeight Reverse() const { return *this; } in Reverse() [all …]
|
D | fst-decl.h | 27 class LogWeight; variable
|
D | random-weight.h | 66 typedef LogWeight Weight;
|
D | arc.h | 56 typedef LogWeight Weight;
|
D | vector-fst.h | 413 LogWeight WeightFromString<LogWeight>::operator()(const string &s) { in operator() 416 return LogWeight(f); in operator()
|
/external/openfst/src/include/fst/ |
D | signed-log-weight.h | 255 struct WeightConvert<SignedLogWeight, LogWeight> { 256 LogWeight operator()(SignedLogWeight w) const { 257 if (!SignedLogConvertCheck<SignedLogWeight, LogWeight>(w)) 258 return LogWeight::NoWeight(); 264 struct WeightConvert<SignedLog64Weight, LogWeight> { 265 LogWeight operator()(SignedLog64Weight w) const { 266 if (!SignedLogConvertCheck<SignedLog64Weight, LogWeight>(w)) 267 return LogWeight::NoWeight(); 296 LogWeight x2 = w.Value(); 302 struct WeightConvert<LogWeight, SignedLogWeight> { [all …]
|
D | float-weight.h | 360 typedef LogWeightTpl<float> LogWeight; typedef 565 struct WeightConvert<LogWeight, TropicalWeight> { 566 TropicalWeight operator()(LogWeight w) const { return w.Value(); } 576 struct WeightConvert<TropicalWeight, LogWeight> { 577 LogWeight operator()(TropicalWeight w) const { return w.Value(); } 581 struct WeightConvert<Log64Weight, LogWeight> { 582 LogWeight operator()(Log64Weight w) const { return w.Value(); } 592 struct WeightConvert<LogWeight, Log64Weight> { 593 Log64Weight operator()(LogWeight w) const { return w.Value(); }
|
D | fst-decl.h | 39 typedef LogWeightTpl<float> LogWeight; typedef 44 typedef ArcTpl<LogWeight> LogArc;
|
D | vector-fst.h | 400 LogWeight WeightFromString<LogWeight>::operator()(const string &s) { in operator() 403 return LogWeight(f); in operator()
|
D | arc.h | 67 typedef ArcTpl<LogWeight> LogArc;
|
/external/openfst/src/test/ |
D | weight_test.cc | 37 using fst::LogWeight; 115 CHECK(LogWeight::Type() == "log"); in main() 198 typedef SparsePowerWeight<LogWeight, size_t > LogSparsePowerWeight; in main() 209 typedef ExpectationWeight<LogWeight, LogWeight> in main() 218 typedef ExpectationWeight<LogWeight, LogSparsePowerWeight> in main()
|
D | fst_test.cc | 34 typedef ProductWeight<TropicalWeight, LogWeight> Weight;
|