SHOGUN
v3.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
ui
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
>
17
#include <
shogun/distance/Distance.h
>
18
#include <
shogun/features/Features.h
>
19
20
namespace
shogun
21
{
22
class
CSGInterface;
23
25
class
CGUIDistance
:
public
CSGObject
26
{
27
public
:
29
CGUIDistance
() {};
33
CGUIDistance
(CSGInterface*
interface
);
35
~CGUIDistance
();
36
38
CDistance
*
get_distance
();
40
bool
set_distance
(
CDistance
* dist);
41
43
CDistance
*
create_generic
(
EDistanceType
type);
45
CDistance
*
create_minkowski
(
float64_t
k=3);
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
:
64
CDistance
*
distance
;
66
CSGInterface*
ui
;
68
bool
initialized
;
69
};
70
}
71
#endif //__GUIDISTANCE_H__
SHOGUN
Machine Learning Toolbox - Documentation