SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
DenseDistance.h
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2006-2009 Christian Gehl
00008  * Copyright (C) 2006-2009 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #ifndef _DENSEDISTANCE_H___
00012 #define _DENSEDISTANCE_H___
00013 
00014 #include <shogun/distance/Distance.h>
00015 #include <shogun/features/FeatureTypes.h>
00016 #include <shogun/features/DenseFeatures.h>
00017 #include <shogun/io/SGIO.h>
00018 
00019 namespace shogun
00020 {
00022 template <class ST> class CDenseDistance : public CDistance
00023 {
00024     public:
00026         CDenseDistance() : CDistance() {}
00027 
00034         virtual bool init(CFeatures* l, CFeatures* r);
00035 
00040         virtual EFeatureClass get_feature_class() { return C_DENSE; }
00041 
00046         virtual EFeatureType get_feature_type();
00047 
00053         virtual const char* get_name() const {
00054             return "DenseDistance"; }
00055 
00062         virtual EDistanceType get_distance_type()=0;
00063 };
00064 } // namespace shogun
00065 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation