#include <WeightedSum.h>
Public Member Functions | |
double | calculateCost (boost::shared_ptr< SceneModel::Topology > instance) |
WeightedSum (unsigned int minFalsePositives, unsigned int maxFalsePositives, unsigned int minFalseNegatives, unsigned int maxFalseNegatives, double minAverageRecognitionRuntime, double maxAverageRecognitionRuntime, double alpha, double beta, double gamma) | |
~WeightedSum () | |
Private Member Functions | |
double | getNormalisedAverageRecognitionRuntime (double averageRecognitionRuntime) |
double | getNormalisedFalseNegatives (unsigned int falseNegatives) |
double | getNormalisedFalsePositives (unsigned int falsePositives) |
Private Attributes | |
double | mAlpha |
double | mBeta |
double | mGamma |
double | mMaxAverageRecognitionRuntime |
unsigned int | mMaxFalseNegatives |
unsigned int | mMaxFalsePositives |
double | mMinAverageRecognitionRuntime |
unsigned int | mMinFalseNegatives |
unsigned int | mMinFalsePositives |
Calculates the cost of a topology as a weighted sum of its number of false positives and average recognition runtime on test sets.
Definition at line 30 of file WeightedSum.h.
ProbabilisticSceneRecognition::WeightedSum::WeightedSum | ( | unsigned int | minFalsePositives, |
unsigned int | maxFalsePositives, | ||
unsigned int | minFalseNegatives, | ||
unsigned int | maxFalseNegatives, | ||
double | minAverageRecognitionRuntime, | ||
double | maxAverageRecognitionRuntime, | ||
double | alpha, | ||
double | beta, | ||
double | gamma | ||
) |
Constructor.
minFalsePositives | Minimum number of false positives for normalization. |
maxFalsePositives | Maximum number of false positives for normalization. |
minAverageRecognitionRuntime | Minimum average recognition runtime for normalization. |
maxAverageRecognitionRuntime | Maximum average recognition runtime for normalization. |
alpha | Weight of the normalized number of false positives. |
beta | Weight of the normalized average recognition runtime. |
gamma | Weight of the normalized number of false negatives. |
Definition at line 22 of file WeightedSum.cpp.
ProbabilisticSceneRecognition::WeightedSum::~WeightedSum | ( | ) |
Destructor.
Definition at line 37 of file WeightedSum.cpp.
double ProbabilisticSceneRecognition::WeightedSum::calculateCost | ( | boost::shared_ptr< SceneModel::Topology > | instance | ) |
Calculate the cost of the topology as weighted sum of its number of false positives and average recognition runtime on test sets. Stores the cost in the topology.
instance | the topology to calculate the cost for. |
Definition at line 41 of file WeightedSum.cpp.
|
private |
Normalize average recognition runtime.
averageRecognitionRuntime | the average recognition runtime. |
Definition at line 100 of file WeightedSum.cpp.
|
private |
Normalize number of false negatives.
falsePositives | the number of false negatives. |
Definition at line 84 of file WeightedSum.cpp.
|
private |
Normalize number of false positives.
falsePositives | the number of false positives. |
Definition at line 68 of file WeightedSum.cpp.
|
private |
Weight of the normalized number of false positives.
Definition at line 94 of file WeightedSum.h.
|
private |
Weight of the normalized average recognition runtime.
Definition at line 98 of file WeightedSum.h.
|
private |
Weight of the normalized number of false negatives.
Definition at line 102 of file WeightedSum.h.
|
private |
Maximum average recognition runtime for normalization.
Definition at line 89 of file WeightedSum.h.
|
private |
Maximum number of false negatives for normalization.
Definition at line 80 of file WeightedSum.h.
|
private |
Maximum number of false positives for normalization.
Definition at line 70 of file WeightedSum.h.
|
private |
Minimum average recognition runtime for normalization.
Definition at line 85 of file WeightedSum.h.
|
private |
Minimum number of false negatives for normalization.
Definition at line 75 of file WeightedSum.h.
|
private |
Minimum number of false positives for normalization.
Definition at line 66 of file WeightedSum.h.