Lines Matching refs:MinMaxWeightTpl

447 class MinMaxWeightTpl : public FloatWeightTpl<T> {
451 typedef MinMaxWeightTpl<T> ReverseWeight;
453 MinMaxWeightTpl() : FloatWeightTpl<T>() {} in MinMaxWeightTpl() function
455 MinMaxWeightTpl(T f) : FloatWeightTpl<T>(f) {} in MinMaxWeightTpl() function
457 MinMaxWeightTpl(const MinMaxWeightTpl<T> &w) : FloatWeightTpl<T>(w) {} in MinMaxWeightTpl() function
459 static const MinMaxWeightTpl<T> Zero() { in Zero()
460 return MinMaxWeightTpl<T>(FloatLimits<T>::PosInfinity()); in Zero()
463 static const MinMaxWeightTpl<T> One() { in One()
464 return MinMaxWeightTpl<T>(FloatLimits<T>::NegInfinity()); in One()
467 static const MinMaxWeightTpl<T> NoWeight() { in NoWeight()
468 return MinMaxWeightTpl<T>(FloatLimits<T>::NumberBad()); } in NoWeight()
481 MinMaxWeightTpl<T> Quantize(float delta = kDelta) const {
488 return MinMaxWeightTpl<T>(floor(Value()/delta + 0.5F) * delta);
491 MinMaxWeightTpl<T> Reverse() const { return *this; } in Reverse()
499 typedef MinMaxWeightTpl<float> MinMaxWeight;
503 inline MinMaxWeightTpl<T> Plus( in Plus()
504 const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) { in Plus()
506 return MinMaxWeightTpl<T>::NoWeight(); in Plus()
510 inline MinMaxWeightTpl<float> Plus( in Plus()
511 const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) { in Plus()
515 inline MinMaxWeightTpl<double> Plus( in Plus()
516 const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) { in Plus()
522 inline MinMaxWeightTpl<T> Times( in Times()
523 const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) { in Times()
525 return MinMaxWeightTpl<T>::NoWeight(); in Times()
529 inline MinMaxWeightTpl<float> Times( in Times()
530 const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) { in Times()
534 inline MinMaxWeightTpl<double> Times( in Times()
535 const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) { in Times()
541 inline MinMaxWeightTpl<T> Divide(const MinMaxWeightTpl<T> &w1,
542 const MinMaxWeightTpl<T> &w2,
545 return MinMaxWeightTpl<T>::NoWeight();
550 inline MinMaxWeightTpl<float> Divide(const MinMaxWeightTpl<float> &w1,
551 const MinMaxWeightTpl<float> &w2,
556 inline MinMaxWeightTpl<double> Divide(const MinMaxWeightTpl<double> &w1,
557 const MinMaxWeightTpl<double> &w2,