Searched defs:Weight (Results 1 - 25 of 46) sorted by relevance

12

/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dequal.h30 typedef typename Arc::Weight Weight; typedef
53 Weight final1 = fst1.Final(s1);
54 Weight final2 = fst2.Final(s2);
H A Dreweight.h30 // vector in the direction defined by TYPE. Weight needs to be left
39 void Reweight(MutableFst<Arc> *fst, vector<typename Arc::Weight> potential,
41 typedef typename Arc::Weight Weight; typedef
46 potential.push_back(Weight::Zero());
48 if (type == REWEIGHT_TO_FINAL && !(Weight::Properties() & kRightSemiring))
50 << "Weight to be right distributive: "
51 << Weight::Type();
53 if (type == REWEIGHT_TO_INITIAL && !(Weight::Properties() & kLeftSemiring))
55 << "Weight t
[all...]
H A Drmfinalepsilon.h33 typedef typename A::Weight Weight; typedef
48 if (fst->Final(s) != Weight::Zero()) {
67 Weight w(fst->Final(s));
H A Dstatesort.h36 typedef typename Arc::Weight Weight; typedef
57 Weight final1 = fst->Final(s1), final2 = Weight::Zero();
H A Dverify.h31 typedef typename Arc::Weight Weight; typedef
82 } else if (!arc.weight.Member() || arc.weight == Weight::Zero()) {
H A Dreverse.h34 // the input arc type except having the reversed Weight type.
38 typedef typename Arc::Weight Weight; typedef
39 typedef typename RevArc::Weight RevWeight;
58 Weight final = ifst.Final(is);
59 if (final != Weight::Zero()) {
H A Dweight.h29 // A Weight class is required to be (at least) a left or right semiring.
31 // In addition, the following should be defined for a Weight:
48 // Typically the same type as Weight for a (both left and right) semiring.
50 // Reverse: a mapping from Weight to ReverseWeight s.t.
123 typedef W Weight; typedef in class:fst::NaturalLess
128 LOG(ERROR) << "NaturalLess: Weight type is not idempotent and "
H A Darc.h32 typedef TropicalWeight Weight; typedef in struct:fst::StdArc
35 StdArc(Label i, Label o, Weight w, StateId s)
47 Weight weight; // Transition weight
56 typedef LogWeight Weight; typedef in struct:fst::LogArc
59 LogArc(Label i, Label o, Weight w, StateId s)
71 Weight weight; // Transition weight
81 typedef StringWeight<int, S> Weight; typedef in class:fst::StringArc
84 StringArc(Label i, Label o, Weight w, StateId s)
100 Weight weight; // Transition weight
112 typedef GallicWeight<Label, typename A::Weight, typedef in struct:fst::GallicArc
144 typedef typename AWeight::ReverseWeight Weight; typedef in struct:fst::ReverseArc
[all...]
H A Dclosure.h32 // transduced to itself with weight Weight::One() as well.
42 typedef typename Arc::Weight Weight; typedef
50 Weight final = fst->Final(s);
51 if (final != Weight::Zero())
57 fst->SetFinal(nstart, Weight::One());
59 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
88 // to itself with weight Weight::One() as well.
H A Dconcat.h42 typedef typename Arc::Weight Weight; typedef
70 Weight final = fst1->Final(s1);
71 if (final != Weight::Zero()) {
72 fst1->SetFinal(s1, Weight::Zero());
110 typedef typename A::Weight Weight; typedef in class:fst::ConcatFst
H A Ddifference.h49 typedef typename A::Weight Weight; typedef in class:fst::DifferenceFst
H A Dintersect.h46 typedef typename A::Weight Weight; typedef in class:fst::IntersectFst
H A Dprune.h31 typedef typename A::Weight Weight; typedef in class:fst::PruneOptions
34 Weight threshold;
39 vector<Weight> *idistance;
42 vector<Weight> *fdistance;
44 PruneOptions(const Weight& t, ArcFilter f, vector<Weight> *id = 0,
45 vector<Weight> *fd = 0)
58 typedef typename Arc::Weight Weight; typedef
144 typedef typename Arc::Weight Weight; typedef
[all...]
H A Drandom-weight.h39 typedef TropicalWeight Weight; typedef in class:fst::TropicalWeightGenerator
46 Weight operator() () const {
49 return Weight::Zero();
51 return Weight(static_cast<float>(n));
66 typedef LogWeight Weight; typedef in class:fst::LogWeightGenerator
73 Weight operator() () const {
76 return Weight::Zero();
78 return Weight(static_cast<float>(n));
94 typedef StringWeight<L, S> Weight; typedef in class:fst::StringWeightGenerator
101 Weight operato
129 typedef ProductWeight<W1, W2> Weight; typedef in class:fst::ProductWeightGenerator
154 typedef GallicWeight<L, W, S> Weight; typedef in class:fst::GallicWeightGenerator
[all...]
H A Dunion.h40 typedef typename Arc::Weight Weight; typedef
73 fst1->AddArc(start1, Arc(0, 0, Weight::One(), start2 + numstates1));
77 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start1));
78 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start2 + numstates1));
112 typedef typename A::Weight Weight; typedef in class:fst::UnionFst
H A Dconnect.h34 typedef typename Arc::Weight Weight; typedef in class:fst::SccVisitor
130 if (fst_->Final(s) != Weight::Zero())
H A Dequivalent.h48 typedef typename Arc::Weight Weight; typedef in struct:fst::EquivalenceUtil
77 false : (fa.Final(UnMapState(s)) != Weight::Zero());
114 typedef typename Arc::Weight Weight; typedef
194 if (arc.weight != Weight::Zero()) { // Zero-weight arcs
206 if (arc.weight != Weight::Zero()) { // Zero-weight arcs
H A Dmutable-fst.h36 typedef typename A::Weight Weight; typedef in class:fst::MutableFst
42 virtual void SetFinal(StateId, Weight) = 0; // Set a state's final weight
H A Drandgen.h44 typedef typename A::Weight Weight; typedef in struct:fst::UniformArcSelector
51 if (fst.Final(s) != Weight::Zero())
59 // the state). Weight::zero transitions are disregarded.
60 // Assumes Weight::Value() accesses the floating point
65 typedef typename A::Weight Weight; typedef in struct:fst::LogProbArcSelector
119 typedef typename Arc::Weight Weight; typedef
136 ifst.Final(opts.source) == Weight
[all...]
H A Dtest-properties.h77 typedef typename Arc::Weight Weight; typedef
126 Arc prev_arc(kNoLabel, kNoLabel, Weight::One(), 0);
170 if (arc.weight != Weight::One() && arc.weight != Weight::Zero()) {
194 Weight final = fst.Final(s);
196 if (final != Weight::Zero()) { // final state
197 if (final != Weight::One()) {
H A Darcsort.h87 typedef typename A::Weight Weight; typedef in class:fst::ArcSortFstImpl
116 Weight Final(StateId s) {
192 typedef typename A::Weight Weight; typedef in class:fst::ArcSortFst
209 virtual Weight Final(StateId s) const { return impl_->Final(s); }
H A Dcomplement.h54 typedef typename A::Weight Weight; typedef in class:fst::ComplementFstImpl
76 Weight Final(StateId s) const {
77 if (s == 0 || fst_->Final(s - 1) == Weight::Zero())
78 return Weight::One();
80 return Weight::Zero();
115 typedef typename A::Weight Weight; typedef in class:fst::ComplementFst
134 virtual Weight Final(StateId s) const { return impl_->Final(s); }
219 typedef typename A::Weight Weigh typedef in class:fst::ArcIterator
[all...]
/external/llvm/lib/CodeGen/
H A DMachineBranchProbabilityInfo.cpp36 uint32_t Weight = getEdgeWeight(MBB, Succ); local
39 Sum += Weight;
49 uint32_t Weight = Src->getSuccWeight(Dst); local
50 if (!Weight)
52 return Weight;
58 uint32_t Weight = getEdgeWeight(Src, Dst); local
63 return (uint64_t)Weight * 5 > (uint64_t)Sum * 4;
75 uint32_t Weight = getEdgeWeight(MBB, Succ); local
78 Sum += Weight;
81 if (Weight > MaxWeigh
[all...]
/external/webkit/Source/WebKit/chromium/public/
H A DWebFontDescription.h60 enum Weight { enum in struct:WebKit::WebFontDescription
91 Weight weight;
/external/srec/tools/grxmlcompile/
H A Dfst-io.h46 typedef typename A::Weight Weight; typedef in class:fst::FstPrinter
122 if (arc.weight != Weight::One())
127 Weight final = fst_.Final(s);
128 if (final != Weight::Zero() || !output) {
130 if (final != Weight::One()) {
210 typedef typename A::Weight Weight; typedef in class:fst::FstReader
243 fst_.SetFinal(s, Weight::One());
252 arc.weight = Weight
[all...]

Completed in 226 milliseconds

12