WeightedSum.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <ros/ros.h>
21 
22 #include <ISM/combinatorial_optimization/CostFunction.hpp>
23 #include <topology_creator/Topology.h>
24 
26 
30 class WeightedSum: public ISM::CostFunction<boost::shared_ptr<SceneModel::Topology>> {
31 
32  // similar to lib_ism/WeightedSum:
33 public:
44  WeightedSum(unsigned int minFalsePositives, unsigned int maxFalsePositives,
45  unsigned int minFalseNegatives, unsigned int maxFalseNegatives,
46  double minAverageRecognitionRuntime, double maxAverageRecognitionRuntime,
47  double alpha, double beta, double gamma);
48 
52  ~WeightedSum();
53 
61 
62 private:
66  unsigned int mMinFalsePositives;
70  unsigned int mMaxFalsePositives;
71 
75  unsigned int mMinFalseNegatives;
76 
80  unsigned int mMaxFalseNegatives;
81 
90 
94  double mAlpha;
98  double mBeta;
102  double mGamma;
103 
109  double getNormalisedFalsePositives(unsigned int falsePositives);
110 
116  double getNormalisedFalseNegatives(unsigned int falseNegatives);
117 
123  double getNormalisedAverageRecognitionRuntime(double averageRecognitionRuntime);
124 
125 };
126 
127 }
WeightedSum(unsigned int minFalsePositives, unsigned int maxFalsePositives, unsigned int minFalseNegatives, unsigned int maxFalseNegatives, double minAverageRecognitionRuntime, double maxAverageRecognitionRuntime, double alpha, double beta, double gamma)
Definition: WeightedSum.cpp:22
double getNormalisedFalseNegatives(unsigned int falseNegatives)
Definition: WeightedSum.cpp:84
double getNormalisedFalsePositives(unsigned int falsePositives)
Definition: WeightedSum.cpp:68
double getNormalisedAverageRecognitionRuntime(double averageRecognitionRuntime)
double calculateCost(boost::shared_ptr< SceneModel::Topology > instance)
Definition: WeightedSum.cpp:41


asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 04:00:08