MCPcopy Create free account
hub / github.com/antgroup/vsag / GetVectorByInnerId

Method GetVectorByInnerId

src/algorithm/ivf.cpp:1045–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043}
1044
1045void
1046IVF::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
1051float
1052calculate_percentile(const std::vector<float>& sorted_data, float percentile) {

Calls 2

get_locationMethod · 0.95
GetCodesByIdMethod · 0.45

Tested by

no test coverage detected