| 119 | private: |
| 120 | |
| 121 | void offset_feature_vector ( |
| 122 | feature_vector_type& sample, |
| 123 | const unsigned long val |
| 124 | ) const |
| 125 | { |
| 126 | if (val != 0) |
| 127 | { |
| 128 | for (typename feature_vector_type::iterator i = sample.begin(); i != sample.end(); ++i) |
| 129 | { |
| 130 | i->first += val; |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | |
| 136 | const std::vector<sample_type>& samples; |