HomeSort by relevance Sort by last modified time
    Searched defs:Weight (Results 1 - 25 of 49) sorted by null

1 2

  /frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
Weight.java 24 public class Weight extends Activity {
  /frameworks/base/core/tests/coretests/src/android/widget/layout/table/
Weight.java 25 * Exercise table layout with cells having a weight.
27 public class Weight extends Activity {
  /external/srec/tools/thirdparty/OpenFst/fst/lib/
reweight.h 30 // vector in the direction defined by TYPE. Weight needs to be left
34 // An arc of weight w, with an origin state of potential p and
39 void Reweight(MutableFst<Arc> *fst, vector<typename Arc::Weight> potential,
41 typedef typename Arc::Weight Weight;
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)
    [all...]
equal.h 30 typedef typename Arc::Weight Weight;
53 Weight final1 = fst1.Final(s1);
54 Weight final2 = fst2.Final(s2);
86 } else if (!ApproxEqual(arc1.weight, arc2.weight)) {
90 << ", weight1 = " << arc1.weight
91 << ", weight2 = " << arc2.weight;
reverse.h 27 // MutableFst. If A transduces string x to y with weight a, then the
29 // weight a.Reverse().
34 // the input arc type except having the reversed Weight type.
38 typedef typename Arc::Weight Weight;
39 typedef typename RevArc::Weight RevWeight;
58 Weight final = ifst.Final(is);
59 if (final != Weight::Zero()) {
68 RevArc oarc(iarc.ilabel, iarc.olabel, iarc.weight.Reverse(), os);
rmfinalepsilon.h 33 typedef typename A::Weight Weight;
48 if (fst->Final(s) != Weight::Zero()) {
63 // Move the final weight. Complexity O(E)
67 Weight w(fst->Final(s));
76 w = Plus(Times(fst->Final(arc.nextstate), arc.weight), w);
statesort.h 36 typedef typename Arc::Weight Weight;
57 Weight final1 = fst->Final(s1), final2 = Weight::Zero();
verify.h 31 typedef typename Arc::Weight Weight;
82 } else if (!arc.weight.Member() || arc.weight == Weight::Zero()) {
83 LOG(ERROR) << "Verify: Fst weight of arc at position "
99 LOG(ERROR) << "Verify: Fst final weight of state " << s << " is invalid";
arc.h 22 #include "fst/lib/float-weight.h"
23 #include "fst/lib/product-weight.h"
24 #include "fst/lib/string-weight.h"
32 typedef TropicalWeight Weight;
35 StdArc(Label i, Label o, Weight w, StateId s)
36 : ilabel(i), olabel(o), weight(w), nextstate(s) {}
47 Weight weight; // Transition weight member in struct:fst::StdArc
56 typedef LogWeight Weight;
71 Weight weight; \/\/ Transition weight member in struct:fst::LogArc
100 Weight weight; \/\/ Transition weight member in class:fst::StringArc
134 Weight weight; \/\/ Transition weight member in struct:fst::GallicArc
159 Weight weight; \/\/ Transition weight member in struct:fst::ReverseArc
    [all...]
closure.h 28 // MutableFst input. If FST transduces string x to y with weight a,
29 // then the closure transduces x to y with weight a, xx to yy with
30 // weight Times(a, a), xxx to yyy with with Times(Times(a, a), a),
32 // transduced to itself with weight Weight::One() as well.
42 typedef typename Arc::Weight Weight;
50 Weight final = fst->Final(s);
51 if (final != Weight::Zero())
57 fst->SetFinal(nstart, Weight::One())
    [all...]
difference.h 49 typedef typename A::Weight Weight;
intersect.h 46 typedef typename A::Weight Weight;
prune.h 31 typedef typename A::Weight Weight;
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)
52 // do not belong to a successful path whose weight is no more than
53 // 'opts.threshold' Times() the weight of the shortest path. Weight
102 Weight weight = Times(Times((*idistance)[state], arc.weight), local
210 Weight weight = Times(Times((*idistance)[state], arc.weight), local
    [all...]
weight.h 0 // weight.h
17 // General weight set and associated semiring operation definitions.
29 // 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:
33 // >>: reads textual representation of a weight.
34 // <<: prints textual representation of a weight.
35 // Read(istream &): reads binary representation of a weight.
36 // Write(ostrem &): writes binary representation of a weight.
37 // Hash: maps weight to ssize_t.
47 // ReverseWeight: the type of the corresponding reverse weight
    [all...]
concat.h 31 // with weight a and FST2 transduces string w to v with weight b, then
42 typedef typename Arc::Weight Weight;
70 Weight final = fst1->Final(s1);
71 if (final != Weight::Zero()) {
72 fst1->SetFinal(s1, Weight::Zero());
94 // delayed Fst. If FST1 transduces string x to y with weight a and FST2
95 // transduces string w to v with weight b, then their concatenation
110 typedef typename A::Weight Weight
    [all...]
equivalent.h 48 typedef typename Arc::Weight Weight;
77 false : (fa.Final(UnMapState(s)) != Weight::Zero());
114 typedef typename Arc::Weight Weight;
194 if (arc.weight != Weight::Zero()) { // Zero-weight arcs
206 if (arc.weight != Weight::Zero()) { // Zero-weight arc
    [all...]
mutable-fst.h 36 typedef typename A::Weight Weight;
42 virtual void SetFinal(StateId, Weight) = 0; // Set a state's final weight
randgen.h 34 // transition is selected. If N == NumArcs(), then the final weight at
44 typedef typename A::Weight Weight;
51 if (fst.Final(s) != Weight::Zero())
58 // log probabilities after normalizing for the total weight leaving
59 // the state). Weight::zero transitions are disregarded.
60 // Assumes Weight::Value() accesses the floating point
61 // representation of the weight.
65 typedef typename A::Weight Weight;
    [all...]
random-weight.h 1 // random-weight.h
26 #include "fst/lib/float-weight.h"
27 #include "fst/lib/product-weight.h"
28 #include "fst/lib/string-weight.h"
33 // divisors should be returned in the random weight generation.
39 typedef TropicalWeight Weight;
46 Weight operator() () const {
49 return Weight::Zero();
51 return Weight(static_cast<float>(n));
66 typedef LogWeight Weight;
    [all...]
test-properties.h 77 typedef typename Arc::Weight Weight;
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())
    [all...]
union.h 29 // weight a and B transduces string w to v with weight b, then their
30 // union transduces x to y with weight a and w to v with weight b.
40 typedef typename Arc::Weight Weight;
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));
96 // Fst. If A transduces string x to y with weight a and B transduce
    [all...]
connect.h 34 typedef typename Arc::Weight Weight;
130 if (fst_->Final(s) != Weight::Zero())
shortest-distance.h 58 typedef typename Arc::Weight Weight;
62 vector<Weight> *distance,
79 vector<Weight> *distance_;
85 vector<Weight> rdistance_; // Relaxation distance.
99 if (!(Weight::Properties() & kRightSemiring))
100 LOG(FATAL) << "ShortestDistance: Weight needs to be right distributive: "
101 << Weight::Type();
115 distance_->push_back(Weight::Zero());
116 rdistance_.push_back(Weight::Zero())
    [all...]
  /external/llvm/lib/CodeGen/
MachineBranchProbabilityInfo.cpp 36 uint32_t Weight = getEdgeWeight(MBB, Succ);
39 Sum += Weight;
49 uint32_t Weight = Src->getSuccWeight(Dst);
50 if (!Weight)
52 return Weight;
58 uint32_t Weight = getEdgeWeight(Src, Dst);
63 return (uint64_t)Weight * 5 > (uint64_t)Sum * 4;
75 uint32_t Weight = getEdgeWeight(MBB, Succ);
78 Sum += Weight;
81 if (Weight > MaxWeight)
    [all...]
  /external/webkit/Source/WebKit/chromium/public/
WebFontDescription.h 60 enum Weight {
79 , weight(WeightNormal)
91 Weight weight; member in struct:WebKit::WebFontDescription

Completed in 541 milliseconds

1 2