! * \brief Mapping bin into feature value * \param bin * \return Feature value of this bin */
| 111 | * \return Feature value of this bin |
| 112 | */ |
| 113 | inline double BinToValue(uint32_t bin) const { |
| 114 | if (bin_type_ == BinType::NumericalBin) { |
| 115 | return bin_upper_bound_[bin]; |
| 116 | } else { |
| 117 | return bin_2_categorical_[bin]; |
| 118 | } |
| 119 | } |
| 120 | /*! |
| 121 | * \brief Get sizes in byte of this object |
| 122 | */ |