SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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>
17 
18 using namespace shogun;
19 
20 CGUIMath::CGUIMath(CSGInterface* ui_)
21 : CSGObject(), ui(ui_), threshold(0.0)
22 {
23 }
24 
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 }
#define SG_INFO(...)
Definition: SGIO.h:118
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
static void init_random(uint32_t initseed=0)
Definition: Math.h:1006
double float64_t
Definition: common.h:50
void init_random(uint32_t initseed=0)
Definition: GUIMath.cpp:32
float64_t threshold
Definition: GUIMath.h:46
void set_threshold(float64_t value)
Definition: GUIMath.cpp:25
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18

SHOGUN Machine Learning Toolbox - Documentation