Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::RankCombiner::BordaCount Class Reference

#include <MultiClassifier.h>

Inheritance diagram for prapi::RankCombiner::BordaCount:

prapi::RankCombiner List of all members.

Detailed Description

The Borda count is a simple method of combining classification ranks.

For each class, it simply counts the number of classes that are ranked below it by each classifier, and sums them together. The higher the sum, the better the match. Ties are resolved indeterministically.


Public Methods

 BordaCount (int classCount)
 Create a new Borda count rank combiner for the given number of samples.

virtual int combineRanks (const util::List< util::List< int > > &rankings) const
 Combine rankings by different classifiers.


Member Function Documentation

int prapi::RankCombiner::BordaCount::combineRanks const util::List< util::List< int > > &    rankings const [virtual]
 

Combine rankings by different classifiers.

Rankings by different classifiers are provided as a list in which each slot stores the rankings given by one of the classifiers (in the order the classifiers are given to a MultiClassifier). Rankings are represented as a list with as many slots as the number of classes. Slot 0 represents the rank of the first class, slot 1 the rank of the second class etc. The maximum rank is classCount-1.

Implements prapi::RankCombiner.


The documentation for this class was generated from the following files:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.