Home | History | Annotate | Download | only in src
      1 
      2 //
      3 // This file is auto-generated. Please don't modify it!
      4 //
      5 package org.opencv.ml;
      6 
      7 import org.opencv.core.Mat;
      8 import org.opencv.core.TermCriteria;
      9 
     10 // C++: class RTrees
     11 //javadoc: RTrees
     12 public class RTrees extends DTrees {
     13 
     14     protected RTrees(long addr) { super(addr); }
     15 
     16 
     17     //
     18     // C++:  bool getCalculateVarImportance()
     19     //
     20 
     21     //javadoc: RTrees::getCalculateVarImportance()
     22     public  boolean getCalculateVarImportance()
     23     {
     24 
     25         boolean retVal = getCalculateVarImportance_0(nativeObj);
     26 
     27         return retVal;
     28     }
     29 
     30 
     31     //
     32     // C++:  void setCalculateVarImportance(bool val)
     33     //
     34 
     35     //javadoc: RTrees::setCalculateVarImportance(val)
     36     public  void setCalculateVarImportance(boolean val)
     37     {
     38 
     39         setCalculateVarImportance_0(nativeObj, val);
     40 
     41         return;
     42     }
     43 
     44 
     45     //
     46     // C++:  int getActiveVarCount()
     47     //
     48 
     49     //javadoc: RTrees::getActiveVarCount()
     50     public  int getActiveVarCount()
     51     {
     52 
     53         int retVal = getActiveVarCount_0(nativeObj);
     54 
     55         return retVal;
     56     }
     57 
     58 
     59     //
     60     // C++:  void setActiveVarCount(int val)
     61     //
     62 
     63     //javadoc: RTrees::setActiveVarCount(val)
     64     public  void setActiveVarCount(int val)
     65     {
     66 
     67         setActiveVarCount_0(nativeObj, val);
     68 
     69         return;
     70     }
     71 
     72 
     73     //
     74     // C++:  TermCriteria getTermCriteria()
     75     //
     76 
     77     //javadoc: RTrees::getTermCriteria()
     78     public  TermCriteria getTermCriteria()
     79     {
     80 
     81         TermCriteria retVal = new TermCriteria(getTermCriteria_0(nativeObj));
     82 
     83         return retVal;
     84     }
     85 
     86 
     87     //
     88     // C++:  void setTermCriteria(TermCriteria val)
     89     //
     90 
     91     //javadoc: RTrees::setTermCriteria(val)
     92     public  void setTermCriteria(TermCriteria val)
     93     {
     94 
     95         setTermCriteria_0(nativeObj, val.type, val.maxCount, val.epsilon);
     96 
     97         return;
     98     }
     99 
    100 
    101     //
    102     // C++:  Mat getVarImportance()
    103     //
    104 
    105     //javadoc: RTrees::getVarImportance()
    106     public  Mat getVarImportance()
    107     {
    108 
    109         Mat retVal = new Mat(getVarImportance_0(nativeObj));
    110 
    111         return retVal;
    112     }
    113 
    114 
    115     //
    116     // C++: static Ptr_RTrees create()
    117     //
    118 
    119     //javadoc: RTrees::create()
    120     public static RTrees create()
    121     {
    122 
    123         RTrees retVal = new RTrees(create_0());
    124 
    125         return retVal;
    126     }
    127 
    128 
    129     @Override
    130     protected void finalize() throws Throwable {
    131         delete(nativeObj);
    132     }
    133 
    134 
    135 
    136     // C++:  bool getCalculateVarImportance()
    137     private static native boolean getCalculateVarImportance_0(long nativeObj);
    138 
    139     // C++:  void setCalculateVarImportance(bool val)
    140     private static native void setCalculateVarImportance_0(long nativeObj, boolean val);
    141 
    142     // C++:  int getActiveVarCount()
    143     private static native int getActiveVarCount_0(long nativeObj);
    144 
    145     // C++:  void setActiveVarCount(int val)
    146     private static native void setActiveVarCount_0(long nativeObj, int val);
    147 
    148     // C++:  TermCriteria getTermCriteria()
    149     private static native double[] getTermCriteria_0(long nativeObj);
    150 
    151     // C++:  void setTermCriteria(TermCriteria val)
    152     private static native void setTermCriteria_0(long nativeObj, int val_type, int val_maxCount, double val_epsilon);
    153 
    154     // C++:  Mat getVarImportance()
    155     private static native long getVarImportance_0(long nativeObj);
    156 
    157     // C++: static Ptr_RTrees create()
    158     private static native long create_0();
    159 
    160     // native support for java finalize()
    161     private static native void delete(long nativeObj);
    162 
    163 }
    164