SHOGUN
4.2.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
src
shogun
ui
GUIMath.cpp
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
* Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
9
*/
10
11
#include <
shogun/ui/GUIMath.h
>
12
#include <
shogun/ui/SGInterface.h
>
13
14
#include <
shogun/lib/config.h
>
15
#include <
shogun/io/SGIO.h
>
16
#include <
shogun/mathematics/Math.h
>
17
18
using namespace
shogun
;
19
20
CGUIMath::CGUIMath
(CSGInterface* ui_)
21
:
CSGObject
(), ui(ui_), threshold(0.0)
22
{
23
}
24
25
void
CGUIMath::set_threshold
(
float64_t
value)
26
{
27
SG_INFO
(
"Old threshold: %f.\n"
,
threshold
)
28
threshold
=value;
29
SG_INFO
(
"New threshold: %f.\n"
,
threshold
)
30
}
31
32
void
CGUIMath::init_random
(uint32_t initseed)
33
{
34
CMath::init_random
(initseed);
35
}
shogun::CGUIMath::CGUIMath
CGUIMath()
Definition:
GUIMath.h:26
SG_INFO
#define SG_INFO(...)
Definition:
SGIO.h:118
Math.h
SGIO.h
SGInterface.h
config.h
shogun::CSGObject
Class SGObject is the base class of all shogun objects.
Definition:
SGObject.h:115
shogun::CMath::init_random
static void init_random(uint32_t initseed=0)
Definition:
Math.h:1006
float64_t
double float64_t
Definition:
common.h:50
shogun::CGUIMath::init_random
void init_random(uint32_t initseed=0)
Definition:
GUIMath.cpp:32
shogun::CGUIMath::threshold
float64_t threshold
Definition:
GUIMath.h:46
GUIMath.h
shogun::CGUIMath::set_threshold
void set_threshold(float64_t value)
Definition:
GUIMath.cpp:25
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
SHOGUN
Machine Learning Toolbox - Documentation