SHOGUN
4.1.0
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
ui
GUIMath.cpp
浏览该文件的文档.
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:112
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
机器学习工具包 - 项目文档