SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GUIDistance.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 1999-2008 Soeren Sonnenburg
8  * Written (W) 1999-2008 Gunnar Raetsch
9  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
10  */
11 
12 #ifndef __GUIDISTANCE_H__
13 #define __GUIDISTANCE_H__
14 
15 #include <shogun/lib/config.h>
16 #include <shogun/base/SGObject.h>
19 
20 namespace shogun
21 {
22 class CSGInterface;
23 
25 class CGUIDistance : public CSGObject
26 {
27  public:
33  CGUIDistance(CSGInterface* interface);
35  ~CGUIDistance();
36 
40  bool set_distance(CDistance* dist);
41 
47  CDistance* create_hammingword(bool use_sign=false);
48 
50  bool init_distance(const char* target);
54  bool save_distance(char* param);
55 
57  bool is_initialized() { return initialized; }
58 
60  virtual const char* get_name() const { return "GUIDistance"; }
61 
62  protected:
66  CSGInterface* ui;
69 };
70 }
71 #endif //__GUIDISTANCE_H__
CSGInterface * interface
Definition: SGInterface.cpp:45
Class Distance, a base class for all the distances used in the Shogun toolbox.
Definition: Distance.h:81
bool save_distance(char *param)
CDistance * create_hammingword(bool use_sign=false)
CDistance * get_distance()
Definition: GUIDistance.cpp:60
EDistanceType
Definition: Distance.h:32
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
double float64_t
Definition: common.h:50
CDistance * create_generic(EDistanceType type)
virtual const char * get_name() const
Definition: GUIDistance.h:60
CSGInterface * ui
Definition: GUIDistance.h:66
CDistance * distance
Definition: GUIDistance.h:64
bool set_distance(CDistance *dist)
Definition: GUIDistance.cpp:65
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
bool init_distance(const char *target)
Definition: GUIDistance.cpp:80
UI distance.
Definition: GUIDistance.h:25
CDistance * create_minkowski(float64_t k=3)

SHOGUN Machine Learning Toolbox - Documentation