Returns an INT_FEATURE_STRUCT corresponding to the given index. This is the inverse of the Index member.
| 60 | // Returns an INT_FEATURE_STRUCT corresponding to the given index. |
| 61 | // This is the inverse of the Index member. |
| 62 | INT_FEATURE_STRUCT IntFeatureSpace::PositionFromIndex(int index) const { |
| 63 | return PositionFromBuckets(index / (y_buckets_ * theta_buckets_), |
| 64 | index / theta_buckets_ % y_buckets_, |
| 65 | index % theta_buckets_); |
| 66 | } |
| 67 | |
| 68 | // Bulk calls to Index. Maps the given array of features to a vector of |
| 69 | // inT32 indices in the same order as the input. |
no outgoing calls
no test coverage detected