001 002// 003// This file is auto-generated. Please don't modify it! 004// 005package org.opencv.ml; 006 007 008 009// C++: class Boost 010//javadoc: Boost 011public class Boost extends DTrees { 012 013 protected Boost(long addr) { super(addr); } 014 015 016 public static final int 017 DISCRETE = 0, 018 REAL = 1, 019 LOGIT = 2, 020 GENTLE = 3; 021 022 023 // 024 // C++: static Ptr_Boost create() 025 // 026 027 //javadoc: Boost::create() 028 public static Boost create() 029 { 030 031 Boost retVal = new Boost(create_0()); 032 033 return retVal; 034 } 035 036 037 // 038 // C++: double getWeightTrimRate() 039 // 040 041 //javadoc: Boost::getWeightTrimRate() 042 public double getWeightTrimRate() 043 { 044 045 double retVal = getWeightTrimRate_0(nativeObj); 046 047 return retVal; 048 } 049 050 051 // 052 // C++: int getBoostType() 053 // 054 055 //javadoc: Boost::getBoostType() 056 public int getBoostType() 057 { 058 059 int retVal = getBoostType_0(nativeObj); 060 061 return retVal; 062 } 063 064 065 // 066 // C++: int getWeakCount() 067 // 068 069 //javadoc: Boost::getWeakCount() 070 public int getWeakCount() 071 { 072 073 int retVal = getWeakCount_0(nativeObj); 074 075 return retVal; 076 } 077 078 079 // 080 // C++: void setBoostType(int val) 081 // 082 083 //javadoc: Boost::setBoostType(val) 084 public void setBoostType(int val) 085 { 086 087 setBoostType_0(nativeObj, val); 088 089 return; 090 } 091 092 093 // 094 // C++: void setWeakCount(int val) 095 // 096 097 //javadoc: Boost::setWeakCount(val) 098 public void setWeakCount(int val) 099 { 100 101 setWeakCount_0(nativeObj, val); 102 103 return; 104 } 105 106 107 // 108 // C++: void setWeightTrimRate(double val) 109 // 110 111 //javadoc: Boost::setWeightTrimRate(val) 112 public void setWeightTrimRate(double val) 113 { 114 115 setWeightTrimRate_0(nativeObj, val); 116 117 return; 118 } 119 120 121 @Override 122 protected void finalize() throws Throwable { 123 delete(nativeObj); 124 } 125 126 127 128 // C++: static Ptr_Boost create() 129 private static native long create_0(); 130 131 // C++: double getWeightTrimRate() 132 private static native double getWeightTrimRate_0(long nativeObj); 133 134 // C++: int getBoostType() 135 private static native int getBoostType_0(long nativeObj); 136 137 // C++: int getWeakCount() 138 private static native int getWeakCount_0(long nativeObj); 139 140 // C++: void setBoostType(int val) 141 private static native void setBoostType_0(long nativeObj, int val); 142 143 // C++: void setWeakCount(int val) 144 private static native void setWeakCount_0(long nativeObj, int val); 145 146 // C++: void setWeightTrimRate(double val) 147 private static native void setWeightTrimRate_0(long nativeObj, double val); 148 149 // native support for java finalize() 150 private static native void delete(long nativeObj); 151 152}