Boost.java
3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.ml;
import java.lang.String;
// C++: class Boost
//javadoc: Boost
public class Boost extends DTrees {
protected Boost(long addr) { super(addr); }
public static final int
DISCRETE = 0,
REAL = 1,
LOGIT = 2,
GENTLE = 3;
//
// C++: static Ptr_Boost create()
//
//javadoc: Boost::create()
public static Boost create()
{
Boost retVal = new Boost(create_0());
return retVal;
}
//
// C++: static Ptr_Boost load(String filepath, String nodeName = String())
//
//javadoc: Boost::load(filepath, nodeName)
public static Boost load(String filepath, String nodeName)
{
Boost retVal = new Boost(load_0(filepath, nodeName));
return retVal;
}
//javadoc: Boost::load(filepath)
public static Boost load(String filepath)
{
Boost retVal = new Boost(load_1(filepath));
return retVal;
}
//
// C++: double getWeightTrimRate()
//
//javadoc: Boost::getWeightTrimRate()
public double getWeightTrimRate()
{
double retVal = getWeightTrimRate_0(nativeObj);
return retVal;
}
//
// C++: int getBoostType()
//
//javadoc: Boost::getBoostType()
public int getBoostType()
{
int retVal = getBoostType_0(nativeObj);
return retVal;
}
//
// C++: int getWeakCount()
//
//javadoc: Boost::getWeakCount()
public int getWeakCount()
{
int retVal = getWeakCount_0(nativeObj);
return retVal;
}
//
// C++: void setBoostType(int val)
//
//javadoc: Boost::setBoostType(val)
public void setBoostType(int val)
{
setBoostType_0(nativeObj, val);
return;
}
//
// C++: void setWeakCount(int val)
//
//javadoc: Boost::setWeakCount(val)
public void setWeakCount(int val)
{
setWeakCount_0(nativeObj, val);
return;
}
//
// C++: void setWeightTrimRate(double val)
//
//javadoc: Boost::setWeightTrimRate(val)
public void setWeightTrimRate(double val)
{
setWeightTrimRate_0(nativeObj, val);
return;
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: static Ptr_Boost create()
private static native long create_0();
// C++: static Ptr_Boost load(String filepath, String nodeName = String())
private static native long load_0(String filepath, String nodeName);
private static native long load_1(String filepath);
// C++: double getWeightTrimRate()
private static native double getWeightTrimRate_0(long nativeObj);
// C++: int getBoostType()
private static native int getBoostType_0(long nativeObj);
// C++: int getWeakCount()
private static native int getWeakCount_0(long nativeObj);
// C++: void setBoostType(int val)
private static native void setBoostType_0(long nativeObj, int val);
// C++: void setWeakCount(int val)
private static native void setWeakCount_0(long nativeObj, int val);
// C++: void setWeightTrimRate(double val)
private static native void setWeightTrimRate_0(long nativeObj, double val);
// native support for java finalize()
private static native void delete(long nativeObj);
}