Searched defs:potential (Results 1 - 4 of 4) sorted by relevance
/external/openfst/src/script/ |
H A D | reweight.cc | 24 void Reweight(MutableFstClass *fst, const vector<WeightClass> &potential, argument 26 ReweightArgs args(fst, potential, reweight_type);
|
H A D | text-io.cc | 33 vector<WeightClass>* potential) { 44 potential->clear(); 60 while (potential->size() <= s) 61 potential->push_back(WeightClass::Zero()); 62 (*potential)[s] = weight; 69 const vector<WeightClass>& potential) { 81 for (ssize_t s = 0; s < potential.size(); ++s) 82 *strm << s << "\t" << potential[s] << "\n"; local 31 ReadPotentials(const string &weight_type, const string& filename, vector<WeightClass>* potential) argument 68 WritePotentials(const string& filename, const vector<WeightClass>& potential) argument
|
/external/openfst/src/include/fst/ |
H A D | reweight.h | 39 // An arc of weight w, with an origin state of potential p and 40 // destination state of potential q, is reweighted by p\wq when 45 const vector<typename Arc::Weight> &potential, 71 if (state == potential.size()) 73 typename Arc::Weight weight = potential[state]; 79 if (arc.nextstate >= potential.size()) 81 typename Arc::Weight nextweight = potential[arc.nextstate]; 106 typename Arc::Weight startweight = fst->Start() < potential.size() ? 107 potential[fst->Start()] : Weight::Zero(); 44 Reweight(MutableFst<Arc> *fst, const vector<typename Arc::Weight> &potential, ReweightType type) argument
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | reweight.h | 34 // An arc of weight w, with an origin state of potential p and 35 // destination state of potential q, is reweighted by p\wq when 39 void Reweight(MutableFst<Arc> *fst, vector<typename Arc::Weight> potential, argument 45 while ( (int64)potential.size() < (int64)fst->NumStates()) 46 potential.push_back(Weight::Zero()); 66 if ((potential[state] == Weight::Zero()) || 67 (potential[arc.nextstate] == Weight::Zero())) 70 && (potential[state] != Weight::Zero())) 71 arc.weight = Divide(Times(arc.weight, potential[arc.nextstate]), 72 potential[stat [all...] |
Completed in 353 milliseconds