| 1043 | } |
| 1044 | |
| 1045 | void |
| 1046 | IVF::GetVectorByInnerId(InnerIdType inner_id, float* data) const { |
| 1047 | auto [bucket_id, bucket_offset] = this->get_location(inner_id); |
| 1048 | this->bucket_->GetCodesById(bucket_id, bucket_offset, reinterpret_cast<uint8_t*>(data)); |
| 1049 | } |
| 1050 | |
| 1051 | float |
| 1052 | calculate_percentile(const std::vector<float>& sorted_data, float percentile) { |
no test coverage detected