SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
base
init.h
浏览该文件的文档.
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) 2009 Soeren Sonnenburg
8
* Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society
9
*/
10
11
#ifndef __SG_INIT_H__
12
#define __SG_INIT_H__
13
14
#include <stdio.h>
15
16
namespace
shogun
17
{
18
class
SGIO;
19
class
CMath;
20
class
Version;
21
class
Parallel;
22
class
CRandom;
23
37
void
init_shogun
(
void
(*print_message)(FILE* target,
const
char
* str) = NULL,
38
void
(*print_warning)(FILE* target,
const
char
* str) = NULL,
39
void
(*print_error)(FILE* target,
const
char
* str) = NULL,
40
void
(*cancel_computations)(
bool
&delayed,
bool
&immediately)=NULL);
41
43
void
init_shogun_with_defaults
();
44
47
void
exit_shogun
();
48
53
void
set_global_io
(SGIO* io);
54
59
SGIO*
get_global_io
();
60
65
void
set_global_parallel
(Parallel* parallel);
66
71
Parallel*
get_global_parallel
();
72
77
void
set_global_version
(Version* version);
78
83
Version*
get_global_version
();
84
89
void
set_global_math
(CMath* math);
90
95
CMath*
get_global_math
();
96
101
void
set_global_rand
(CRandom* rand);
102
107
CRandom*
get_global_rand
();
108
111
void
init_from_env
();
112
114
extern
void (*
sg_print_message
)(FILE* target,
const
char
* str);
115
117
extern
void (*
sg_print_warning
)(FILE* target,
const
char
* str);
118
120
extern
void (*
sg_print_error
)(FILE* target,
const
char
* str);
121
123
extern
void (*
sg_cancel_computations
)(
bool
&delayed,
bool
&immediately);
124
}
125
#endif //__SG_INIT__
SHOGUN
机器学习工具包 - 项目文档