2 // This file is auto-generated. Please don't modify it!
6 import java.lang.String;
7 import org.opencv.core.Mat;
8 import org.opencv.core.TermCriteria;
9 import org.opencv.ml.SVMSGD;
10 import org.opencv.ml.StatModel;
15 public class SVMSGD extends StatModel {
17 protected SVMSGD(long addr) { super(addr); }
19 // internal usage only
20 public static SVMSGD __fromPtr__(long addr) { return new SVMSGD(addr); }
22 // C++: enum SvmsgdType
23 public static final int
28 // C++: enum MarginType
29 public static final int
35 // C++: Mat cv::ml::SVMSGD::getWeights()
38 //javadoc: SVMSGD::getWeights()
39 public Mat getWeights()
42 Mat retVal = new Mat(getWeights_0(nativeObj));
49 // C++: static Ptr_SVMSGD cv::ml::SVMSGD::create()
52 //javadoc: SVMSGD::create()
53 public static SVMSGD create()
56 SVMSGD retVal = SVMSGD.__fromPtr__(create_0());
63 // C++: static Ptr_SVMSGD cv::ml::SVMSGD::load(String filepath, String nodeName = String())
66 //javadoc: SVMSGD::load(filepath, nodeName)
67 public static SVMSGD load(String filepath, String nodeName)
70 SVMSGD retVal = SVMSGD.__fromPtr__(load_0(filepath, nodeName));
75 //javadoc: SVMSGD::load(filepath)
76 public static SVMSGD load(String filepath)
79 SVMSGD retVal = SVMSGD.__fromPtr__(load_1(filepath));
86 // C++: TermCriteria cv::ml::SVMSGD::getTermCriteria()
89 //javadoc: SVMSGD::getTermCriteria()
90 public TermCriteria getTermCriteria()
93 TermCriteria retVal = new TermCriteria(getTermCriteria_0(nativeObj));
100 // C++: float cv::ml::SVMSGD::getInitialStepSize()
103 //javadoc: SVMSGD::getInitialStepSize()
104 public float getInitialStepSize()
107 float retVal = getInitialStepSize_0(nativeObj);
114 // C++: float cv::ml::SVMSGD::getMarginRegularization()
117 //javadoc: SVMSGD::getMarginRegularization()
118 public float getMarginRegularization()
121 float retVal = getMarginRegularization_0(nativeObj);
128 // C++: float cv::ml::SVMSGD::getShift()
131 //javadoc: SVMSGD::getShift()
132 public float getShift()
135 float retVal = getShift_0(nativeObj);
142 // C++: float cv::ml::SVMSGD::getStepDecreasingPower()
145 //javadoc: SVMSGD::getStepDecreasingPower()
146 public float getStepDecreasingPower()
149 float retVal = getStepDecreasingPower_0(nativeObj);
156 // C++: int cv::ml::SVMSGD::getMarginType()
159 //javadoc: SVMSGD::getMarginType()
160 public int getMarginType()
163 int retVal = getMarginType_0(nativeObj);
170 // C++: int cv::ml::SVMSGD::getSvmsgdType()
173 //javadoc: SVMSGD::getSvmsgdType()
174 public int getSvmsgdType()
177 int retVal = getSvmsgdType_0(nativeObj);
184 // C++: void cv::ml::SVMSGD::setInitialStepSize(float InitialStepSize)
187 //javadoc: SVMSGD::setInitialStepSize(InitialStepSize)
188 public void setInitialStepSize(float InitialStepSize)
191 setInitialStepSize_0(nativeObj, InitialStepSize);
198 // C++: void cv::ml::SVMSGD::setMarginRegularization(float marginRegularization)
201 //javadoc: SVMSGD::setMarginRegularization(marginRegularization)
202 public void setMarginRegularization(float marginRegularization)
205 setMarginRegularization_0(nativeObj, marginRegularization);
212 // C++: void cv::ml::SVMSGD::setMarginType(int marginType)
215 //javadoc: SVMSGD::setMarginType(marginType)
216 public void setMarginType(int marginType)
219 setMarginType_0(nativeObj, marginType);
226 // C++: void cv::ml::SVMSGD::setOptimalParameters(int svmsgdType = SVMSGD::ASGD, int marginType = SVMSGD::SOFT_MARGIN)
229 //javadoc: SVMSGD::setOptimalParameters(svmsgdType, marginType)
230 public void setOptimalParameters(int svmsgdType, int marginType)
233 setOptimalParameters_0(nativeObj, svmsgdType, marginType);
238 //javadoc: SVMSGD::setOptimalParameters(svmsgdType)
239 public void setOptimalParameters(int svmsgdType)
242 setOptimalParameters_1(nativeObj, svmsgdType);
247 //javadoc: SVMSGD::setOptimalParameters()
248 public void setOptimalParameters()
251 setOptimalParameters_2(nativeObj);
258 // C++: void cv::ml::SVMSGD::setStepDecreasingPower(float stepDecreasingPower)
261 //javadoc: SVMSGD::setStepDecreasingPower(stepDecreasingPower)
262 public void setStepDecreasingPower(float stepDecreasingPower)
265 setStepDecreasingPower_0(nativeObj, stepDecreasingPower);
272 // C++: void cv::ml::SVMSGD::setSvmsgdType(int svmsgdType)
275 //javadoc: SVMSGD::setSvmsgdType(svmsgdType)
276 public void setSvmsgdType(int svmsgdType)
279 setSvmsgdType_0(nativeObj, svmsgdType);
286 // C++: void cv::ml::SVMSGD::setTermCriteria(TermCriteria val)
289 //javadoc: SVMSGD::setTermCriteria(val)
290 public void setTermCriteria(TermCriteria val)
293 setTermCriteria_0(nativeObj, val.type, val.maxCount, val.epsilon);
300 protected void finalize() throws Throwable {
306 // C++: Mat cv::ml::SVMSGD::getWeights()
307 private static native long getWeights_0(long nativeObj);
309 // C++: static Ptr_SVMSGD cv::ml::SVMSGD::create()
310 private static native long create_0();
312 // C++: static Ptr_SVMSGD cv::ml::SVMSGD::load(String filepath, String nodeName = String())
313 private static native long load_0(String filepath, String nodeName);
314 private static native long load_1(String filepath);
316 // C++: TermCriteria cv::ml::SVMSGD::getTermCriteria()
317 private static native double[] getTermCriteria_0(long nativeObj);
319 // C++: float cv::ml::SVMSGD::getInitialStepSize()
320 private static native float getInitialStepSize_0(long nativeObj);
322 // C++: float cv::ml::SVMSGD::getMarginRegularization()
323 private static native float getMarginRegularization_0(long nativeObj);
325 // C++: float cv::ml::SVMSGD::getShift()
326 private static native float getShift_0(long nativeObj);
328 // C++: float cv::ml::SVMSGD::getStepDecreasingPower()
329 private static native float getStepDecreasingPower_0(long nativeObj);
331 // C++: int cv::ml::SVMSGD::getMarginType()
332 private static native int getMarginType_0(long nativeObj);
334 // C++: int cv::ml::SVMSGD::getSvmsgdType()
335 private static native int getSvmsgdType_0(long nativeObj);
337 // C++: void cv::ml::SVMSGD::setInitialStepSize(float InitialStepSize)
338 private static native void setInitialStepSize_0(long nativeObj, float InitialStepSize);
340 // C++: void cv::ml::SVMSGD::setMarginRegularization(float marginRegularization)
341 private static native void setMarginRegularization_0(long nativeObj, float marginRegularization);
343 // C++: void cv::ml::SVMSGD::setMarginType(int marginType)
344 private static native void setMarginType_0(long nativeObj, int marginType);
346 // C++: void cv::ml::SVMSGD::setOptimalParameters(int svmsgdType = SVMSGD::ASGD, int marginType = SVMSGD::SOFT_MARGIN)
347 private static native void setOptimalParameters_0(long nativeObj, int svmsgdType, int marginType);
348 private static native void setOptimalParameters_1(long nativeObj, int svmsgdType);
349 private static native void setOptimalParameters_2(long nativeObj);
351 // C++: void cv::ml::SVMSGD::setStepDecreasingPower(float stepDecreasingPower)
352 private static native void setStepDecreasingPower_0(long nativeObj, float stepDecreasingPower);
354 // C++: void cv::ml::SVMSGD::setSvmsgdType(int svmsgdType)
355 private static native void setSvmsgdType_0(long nativeObj, int svmsgdType);
357 // C++: void cv::ml::SVMSGD::setTermCriteria(TermCriteria val)
358 private static native void setTermCriteria_0(long nativeObj, int val_type, int val_maxCount, double val_epsilon);
360 // native support for java finalize()
361 private static native void delete(long nativeObj);