Home
last modified time | relevance | path

Searched refs:LogWeight (Results 1 – 12 of 12) sorted by relevance

/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dfloat-weight.h182 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 …]
Dfst-decl.h27 class LogWeight; variable
Drandom-weight.h66 typedef LogWeight Weight;
Darc.h56 typedef LogWeight Weight;
Dvector-fst.h413 LogWeight WeightFromString<LogWeight>::operator()(const string &s) { in operator()
416 return LogWeight(f); in operator()
/external/openfst/src/include/fst/
Dsigned-log-weight.h255 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 …]
Dfloat-weight.h360 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(); }
Dfst-decl.h39 typedef LogWeightTpl<float> LogWeight; typedef
44 typedef ArcTpl<LogWeight> LogArc;
Dvector-fst.h400 LogWeight WeightFromString<LogWeight>::operator()(const string &s) { in operator()
403 return LogWeight(f); in operator()
Darc.h67 typedef ArcTpl<LogWeight> LogArc;
/external/openfst/src/test/
Dweight_test.cc37 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()
Dfst_test.cc34 typedef ProductWeight<TropicalWeight, LogWeight> Weight;