List of N last results of the recognition process.
More...
#include <t_decision_box.h>
List of all members.
Public Member Functions |
| TDecisionBox (int size, int maxVal) |
| Creates new decision box.
|
| ~TDecisionBox (void) |
| Frees allocated resources.
|
bool | insertItem (int number, double distance) |
| Inserts solution properties as one item in the box.
|
void | decide (int *configuration, double *distance) |
| Finds the most supported solution.
|
Protected Member Functions |
void | countDistances (void) |
| Refreshes the confWeights table.
|
Protected Attributes |
int | size |
| Capacity of the box.
|
int | count |
| Actual number of items in the box.
|
int | maxVal |
| Maximal value of result.
|
double * | confWeights |
| Table of weights of each configuration.
|
Configuration * | head |
| First and last item in the box.
|
Configuration * | tail |
Detailed Description
List of N last results of the recognition process.
Provides functions to insert new configuration (which also deletes the oldest one) and to retrieve the most supported configuration.
Constructor & Destructor Documentation
TDecisionBox::TDecisionBox |
( |
int |
size, |
|
|
int |
maxVal | |
|
) |
| | |
Creates new decision box.
- Parameters:
-
| size | Number of results to store in memory and decide from. |
| maxVal | Highest number of configuration. |
TDecisionBox::~TDecisionBox |
( |
void |
|
) |
|
Frees allocated resources.
Member Function Documentation
void TDecisionBox::countDistances |
( |
void |
|
) |
[protected] |
Refreshes the confWeights table.
void TDecisionBox::decide |
( |
int * |
configuration, |
|
|
double * |
distance | |
|
) |
| | |
Finds the most supported solution.
- Parameters:
-
| configuration | Number of selected configuration is stored here. |
| distance | Distance between best and second best result is stored here. |
bool TDecisionBox::insertItem |
( |
int |
number, |
|
|
double |
distance | |
|
) |
| | |
Inserts solution properties as one item in the box.
- Parameters:
-
| number | Number of (best matching) configuration. |
| distance | Distance between this and second configuration. |
- Returns:
- False if (number) is invalid value, else true.
Member Data Documentation
Table of weights of each configuration.
Actual number of items in the box.
First and last item in the box.
The documentation for this class was generated from the following files: