Home
last modified time | relevance | path

Searched refs:TropicalWeight (Results 1 – 5 of 5) sorted by relevance

/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dfloat-weight.h116 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 …]
Dfst-decl.h28 class TropicalWeight; variable
Drandom-weight.h39 typedef TropicalWeight Weight;
Darc.h32 typedef TropicalWeight Weight;
Dvector-fst.h405 TropicalWeight WeightFromString<TropicalWeight>::operator()(const string &s) { in operator()
408 return TropicalWeight(f); in operator()