WeightedSum.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include "Topology.hpp"
21 #include "../combinatorial_optimization/CostFunction.hpp"
22 
23 namespace ISM {
24 
25  class WeightedSum : public CostFunction<TopologyPtr>
26 {
27  public:
28  WeightedSum(unsigned int minFalsePositives, unsigned int maxFalsePositives,
29  double minAverageRecognitionRuntime, double maxAverageRecognitionRuntime,
30  double alpha, double beta)
31  : mMinFalsePositives(minFalsePositives)
32  , mMaxFalsePositives(maxFalsePositives)
33  , mMinAverageRecognitionRuntime(minAverageRecognitionRuntime)
34  , mMaxAverageRecognitionRuntime(maxAverageRecognitionRuntime)
35  , mAlpha(alpha)
36  , mBeta(beta)
37  {}
38 
39  double calculateCost(TopologyPtr instance);
40 
41  private:
44 
47 
48  double mAlpha;
49  double mBeta;
50 
51  double getNormalisedFalsePositives(double falsePositives);
52  double getNormalisedAverageRecognitionRuntime(double averageRecognitionRuntime);
53 
54 
55 }; typedef boost::shared_ptr<WeightedSum> WeightedSumPtr;
56 
57 
58 }
double calculateCost(TopologyPtr instance)
Definition: WeightedSum.cpp:22
boost::shared_ptr< WeightedSum > WeightedSumPtr
Definition: WeightedSum.hpp:55
boost::shared_ptr< Topology > TopologyPtr
Definition: Topology.hpp:51
double mMinAverageRecognitionRuntime
Definition: WeightedSum.hpp:45
double mMaxFalsePositives
Definition: WeightedSum.hpp:43
double mMinFalsePositives
Definition: WeightedSum.hpp:42
double getNormalisedAverageRecognitionRuntime(double averageRecognitionRuntime)
Definition: WeightedSum.cpp:56
double getNormalisedFalsePositives(double falsePositives)
Definition: WeightedSum.cpp:39
WeightedSum(unsigned int minFalsePositives, unsigned int maxFalsePositives, double minAverageRecognitionRuntime, double maxAverageRecognitionRuntime, double alpha, double beta)
Definition: WeightedSum.hpp:28
this namespace contains all generally usable classes.
double mMaxAverageRecognitionRuntime
Definition: WeightedSum.hpp:46


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41