A batch of SVM function is used to classify the histogram.
More...
#include <ModelBaseAnalysis.hpp>
A batch of SVM function is used to classify the histogram.
- Author
- Author
- Patrick Merz Paranhos
- Date
- Date
- 26/10/2011
Contact: patri.nosp@m.ck.m.nosp@m.erz_p.nosp@m.aran.nosp@m.hos@d.nosp@m.fki..nosp@m.de
| SVMTerrainClassification::SVMTerrainClassification |
( |
std::vector< TerrainType > |
terrain_types, |
|
|
int |
min_number_of_votes |
|
) |
| |
The type that will be detected is the first type to acquire the minimal number of votes Each vote is casted by a svm function
- Parameters
-
| terrain_types | - the list of terrains types in the classification |
| min_number_of_votes | - minimal number of votes needed for a terrain to be detected (each svm function counts as one vote) - |
| void SVMTerrainClassification::addSVMClassifier |
( |
SVMConfiguration |
svm_function | ) |
|
| void terrain_estimator::SVMTerrainClassification::addSVMClassifier |
( |
std::vector< SVMConfiguration > |
svm_functions | ) |
|
|
inline |
| double SVMTerrainClassification::getProbability |
( |
TerrainType |
type | ) |
|
- Parameters
-
| TerrainType | - the terrain type |
- Returns
- the probability distribution of a type based on the last terrain classification
| TerrainType SVMTerrainClassification::getTerrainClassification |
( |
std::vector< double > |
histogram | ) |
|
Calculates the svm value from the combined histogram The combined histogram needs to exist.
- Returns
- the terrain type as classified by the svm
The documentation for this class was generated from the following files: