Classifier.h File Reference

Classifier interface More...

#include "../FeatureContainer/FeatureContainer.h"

Go to the source code of this file.

Classes

class  ClassifierAlgorithm
class  Classifier
#define CLASSIFIER_EXPORT   FEATURE_EXPORT
#define CLASSIFIER_EXPORT_CLASS   FEATURE_EXPORT_CLASS

Defines

#define EXPORT_CLASSIFIER(classifier)

Typedefs

typedef parametermap classifierparams
typedef ClassifierAlgorithm *(* getClassifier_t )(const classifierparams &params)


Detailed Description

Classifier interface

© 2003-2004 by Rene Mayrhofer, Harald Radi

Date
2004-03-02 14:02:00 +0100 (Die, 02 Mär 2004)
Revision
677

Since:
Wed Mar 19 2003
Author:
Rene Mayrhofer <rene@mayrhofer.eu.org>

Harald Radi <harald.radi@nme.at>


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Id
Classifier.h 677 2004-03-02 13:02:00Z rene-cvs

Define Documentation

#define CLASSIFIER_EXPORT   FEATURE_EXPORT
 

compiler specific flags to export functions and classes

#define EXPORT_CLASSIFIER classifier   ) 
 

Value:

 \
        static classifier *clf; \
        void INIT_EXPORT library_initialize() { clf = NULL; } \
        void FINI_EXPORT library_finalize() { if (clf != NULL) delete clf; } \ \
        extern "C" CLASSIFIER_EXPORT ClassifierAlgorithm* getClassifier(classifierparams &params) { if (clf == NULL) clf = new classifier(params); return clf; }
Export a classifier

This macro has to be used in global scope and gets substituted with the implementation for exporting a ClassifierAlgorithm singleton instance to the framework.

Parameters:
classifier The Class that implements the ClassifierAlgorithm interface and should be exported to the framework.


Typedef Documentation

typedef parametermap classifierparams
 

Parameters passed to classifiers

When initializing a classifier, an arbitrary number of named (string) parameters can be passed from the application (e.g. read from a config file). These key-value tuples can then be used by the classifier as configuration or initialization values. They are completely classifier specific.

See also:
Classifier

ClassifierAlgorithm

typedef ClassifierAlgorithm*(* getClassifier_t)(const classifierparams &params)
 

Type of the getClassifier function

This type definition is needed by the Classifier Wrapper to query a ClassifierAlgorithm implementation for an instance of its class.


Generated on Mon Jun 5 10:20:48 2006 for Intelligence.kdevelop by  doxygen 1.4.6