Home | History | Annotate | Download | only in fst

Lines Matching defs:weights_

135   vector<double> *Weights() { return &weights_; }
137 double *WeightEnd() { return &(weights_[weights_.size() - 1]); };
146 vector<double> weights_;
148 // weights_. Position -1 means no pre-computed weights for that
473 weights_ = 0;
480 weights_ = 0;
484 weights_ = data_->GetWeights(s);
485 if ((weights_ == 0) && (fst_->NumArcs(s) >= arc_limit_)) {
486 weights_ = new vector<double>;
487 weights_->reserve(fst_->NumArcs(s) + 1);
488 weights_->push_back(FloatLimits<double>::PosInfinity());
489 data_->AddWeights(s, weights_);
500 if (weights_ == 0) {
507 if (weights_->size() <= end)
508 for (aiter->Seek(weights_->size() - 1);
509 weights_->size() <= end;
511 weights_->push_back(LogPlus(weights_->back(),
513 return LogPlus(w, LogMinus((*weights_)[end], (*weights_)[begin]));
519 if (weights_ != 0) {
520 return lower_bound(weights_->begin() + 1,
521 weights_->end(),
524 - weights_->begin() - 1;
585 vector<double> *weights_; // Accumulated weights for cur. state