结构体 faiss::OperatingPoints
-
struct OperatingPoints
公共函数
-
OperatingPoints()
-
int merge_with(const OperatingPoints &other, const std::string &prefix = "")
将 other 中的操作点添加到此对象,并为键添加前缀
-
void clear()
-
bool add(double perf, double t, const std::string &key, size_t cno = 0)
添加性能指标。返回它是否是一个最佳点
-
double t_for_perf(double perf) const
获取获得给定性能指标所需的时间
-
void display(bool only_optimal = true) const
易于阅读的输出
-
void all_to_gnuplot(const char *fname) const
以易于 gnuplot 识别的格式输出
-
void optimal_to_gnuplot(const char *fname) const
公共成员
-
std::vector<OperatingPoint> all_pts
所有操作点
-
std::vector<OperatingPoint> optimal_pts
最佳操作点,按 perf 排序
-
OperatingPoints()