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