Home | History | Annotate | Download | only in lib

Lines Matching refs:Arc

31 // ARC SELECTORS - these function objects are used to select a random
74 const A &arc = aiter.Value();
75 sum += exp(-arc.weight.Value());
84 const A &arc = aiter.Value();
85 p += exp(-arc.weight.Value());
100 const S &arc_selector; // How an arc is selected at a state
116 template<class Arc, class ArcSelector>
117 void RandGen(const Fst<Arc> &ifst, MutableFst<Arc> *ofst,
119 typedef typename Arc::Weight Weight;
143 ArcIterator< Fst<Arc> > aiter(ifst, opts.source);
145 const Arc &iarc = aiter.Value();
146 Arc oarc(iarc.ilabel, iarc.olabel, Weight::One(), ofst->AddState());
160 template<class Arc>
161 void RandGen(const Fst<Arc> &ifst, MutableFst<Arc> *ofst) {
162 UniformArcSelector<Arc> uniform_selector;
163 RandGenOptions< UniformArcSelector<Arc> > opts(uniform_selector);