Struct faiss::ReproduceDistancesObjective
-
struct ReproduceDistancesObjective : public faiss::PermutationObjective
Public Functions
-
double dis_weight(double x) const
-
double get_source_dis(int i, int j) const
-
virtual double compute_cost(const int *perm) const override
-
virtual double cost_update(const int *perm, int iw, int jw) const override
-
ReproduceDistancesObjective(int n, const double *source_dis_in, const double *target_dis_in, double dis_weight_factor)
-
void set_affine_target_dis(const double *source_dis_in)
-
inline ~ReproduceDistancesObjective() override
Public Members
-
double dis_weight_factor
-
std::vector<double> source_dis
“real” corrected distances (size n^2)
-
const double *target_dis
wanted distances (size n^2)
-
std::vector<double> weights
weights for each distance (size n^2)
-
int n
Public Static Functions
-
static inline double sqr(double x)
-
static void compute_mean_stdev(const double *tab, size_t n2, double *mean_out, double *stddev_out)
-
double dis_weight(double x) const