TraceLab Component Library
Main Page
Packages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
GibbsLDAConfig.cs
Go to the documentation of this file.
1
// TraceLab Component Library
2
// Copyright © 2012-2013 SEMERU
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17
using
System;
18
using
TraceLabSDK;
19
37
38
namespace
TraceLab.Components.Types.Tracers.InformationRetrieval
39
{
40
[WorkspaceType]
41
[Serializable]
42
public
class
GibbsLDAConfig
:
RConfig
43
{
44
#region Private members
45
46
private
int
_NumTopics;
47
private
double
_Alpha;
48
private
double
_Beta;
49
private
int
_GibbsIterations;
50
private
int
_Seed;
51
52
#endregion
53
54
public
double
Alpha
55
{
56
get
57
{
58
return
_Alpha;
59
}
60
set
61
{
62
if
(value <= 0.0)
63
throw
new
ArgumentException(
"Alpha must be greater than 0."
);
64
else
65
_Alpha = value;
66
}
67
}
68
69
public
double
Beta
70
{
71
get
72
{
73
return
_Beta;
74
}
75
set
76
{
77
if
(value <= 0.0)
78
throw
new
ArgumentException(
"Beta must be greater than 0."
);
79
else
80
_Beta = value;
81
}
82
}
83
84
public
int
NumTopics
85
{
86
get
87
{
88
return
_NumTopics;
89
}
90
set
91
{
92
if
(value <= 1)
93
throw
new
ArgumentException(
"Number of topics must be greater than 1."
);
94
else
95
_NumTopics = value;
96
}
97
}
98
99
public
int
GibbsIterations
100
{
101
get
102
{
103
return
_GibbsIterations;
104
}
105
set
106
{
107
if
(value <= 0)
108
throw
new
ArgumentException(
"Number of iterations must be greater than 0."
);
109
else
110
_GibbsIterations = value;
111
}
112
}
113
114
public
int
Seed
115
{
116
get
117
{
118
return
_Seed;
119
}
120
set
121
{
122
if
(value <= 0)
123
throw
new
ArgumentException(
"Seed must be greater than 0."
);
124
else
125
_Seed = value;
126
}
127
}
128
}
129
}
TraceLab.Components.RPlugin
TraceLab.Components.RPlugin.Types
Tracers
InformationRetrieval
GibbsLDAConfig.cs
Generated on Mon May 20 2013 18:13:11 for TraceLab Component Library by
1.8.4