Home
last modified time | relevance | path

Searched refs:LogWeight (Results 1 – 5 of 5) 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()