OpenCV 2.4.2

org.opencv.ml
Class CvERTrees

java.lang.Object
  extended by org.opencv.ml.CvStatModel
      extended by org.opencv.ml.CvRTrees
          extended by org.opencv.ml.CvERTrees

public class CvERTrees
extends CvRTrees

The class implements the Extremely randomized trees algorithm. CvERTrees is inherited from "CvRTrees" and has the same interface, so see description of "CvRTrees" class to get details. To set the training parameters of Extremely randomized trees the same class "CvRTParams" is used.

See Also:
org.opencv.ml.CvERTrees : public CvRTrees

Field Summary
 
Fields inherited from class org.opencv.ml.CvStatModel
nativeObj
 
Constructor Summary
  CvERTrees()
           
protected CvERTrees(long addr)
           
 
Method Summary
protected  void finalize()
           
 boolean train(Mat trainData, int tflag, Mat responses)
          Trains the Random Trees model.
 boolean train(Mat trainData, int tflag, Mat responses, Mat varIdx, Mat sampleIdx, Mat varType, Mat missingDataMask, CvRTParams params)
          Trains the Random Trees model.
 
Methods inherited from class org.opencv.ml.CvRTrees
clear, getVarImportance, predict_prob, predict_prob, predict, predict
 
Methods inherited from class org.opencv.ml.CvStatModel
load, load, save, save
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvERTrees

public CvERTrees()

CvERTrees

protected CvERTrees(long addr)
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class CvRTrees
Throws:
java.lang.Throwable

train

public boolean train(Mat trainData,
                     int tflag,
                     Mat responses)
Description copied from class: CvRTrees

Trains the Random Trees model.

The method "CvRTrees.train" is very similar to the method "CvDTree.train" and follows the generic method "CvStatModel.train" conventions. All the parameters specific to the algorithm training are passed as a "CvRTParams" instance. The estimate of the training error (oob-error) is stored in the protected class member oob_error.

The function is parallelized with the TBB library.

Overrides:
train in class CvRTrees
Parameters:
trainData - a trainData
tflag - a tflag
responses - a responses
See Also:
org.opencv.ml.CvRTrees.train

train

public boolean train(Mat trainData,
                     int tflag,
                     Mat responses,
                     Mat varIdx,
                     Mat sampleIdx,
                     Mat varType,
                     Mat missingDataMask,
                     CvRTParams params)
Description copied from class: CvRTrees

Trains the Random Trees model.

The method "CvRTrees.train" is very similar to the method "CvDTree.train" and follows the generic method "CvStatModel.train" conventions. All the parameters specific to the algorithm training are passed as a "CvRTParams" instance. The estimate of the training error (oob-error) is stored in the protected class member oob_error.

The function is parallelized with the TBB library.

Overrides:
train in class CvRTrees
Parameters:
trainData - a trainData
tflag - a tflag
responses - a responses
varIdx - a varIdx
sampleIdx - a sampleIdx
varType - a varType
missingDataMask - a missingDataMask
params - a params
See Also:
org.opencv.ml.CvRTrees.train

Official OpenCV 2.4 Documentation