19 #ifndef ATOMPROBE_MASSTOOL_H 20 #define ATOMPROBE_MASSTOOL_H 48 static void preprocessKnapsack(std::vector<Weight> &weights,
49 float totalWeight,
float tolerance,
unsigned int maxCombine);
65 static void bruteKnapsack(std::vector<Weight> &weights,
66 float targetWeight,
float tolerance,
67 unsigned int maxObjects, std::vector<std::vector<Weight> > &solutions);
81 static void bruteKnapsack(std::vector<Weight> &weights,
82 const std::vector<float> &targetWeight,
float tolerance,
83 unsigned int maxObjects, std::vector<std::vector<Weight> > &solutions);
86 static bool runUnitTests();
bool operator==(const Weight &b) const
bool operator<(const Weight &b) const
Weight(float m, size_t uniqId=0)
Placeholder class for containing input weights for MassTool.