Inheritance diagram for Bucketing:Public Member Functions | |
| template<class I > | |
| Bucketing (I bucketsBegin, I bucketsEnd) | |
| Bucketing (const Real lowerBound, const Real upperBound, const Size n) | |
| const std::vector< Real > & | upperBucketBound () const |
| Size | index (const Real x) const |
| Size | buckets () const |
Protected Member Functions | |
| void | initBuckets () |
Protected Attributes | |
| std::vector< Real > | buckets_ |
| bool | uniformBuckets_ = false |
| Real | lowerBound_ |
| Real | upperBound_ |
| Real | h_ |
| Bucketing | ( | I | bucketsBegin, |
| I | bucketsEnd | ||
| ) |
buckets are (-QL_MAX_REAL, b1), [b1, b2), [b2,b3), ... , [b_{n-1}, b_n), [b_n, +QL_MAX_REAL)
| Bucketing | ( | const Real | lowerBound, |
| const Real | upperBound, | ||
| const Size | n | ||
| ) |
there are n+2 buckets constructed, lb = lower bound, ub = upper bound, h = (ub - lb) / n buckets are (-QL_MAX_REAL, lb), [lb, lb+h), [lb+h, lb+2h), ... , [lb+(n-1)h, ub), [ub,+QL_MAX_REAL)