OpenCV 3.0.0-rc1

org.opencv.ml
Class TrainData

java.lang.Object
  extended by org.opencv.ml.TrainData

public class TrainData
extends java.lang.Object


Method Summary
 int getCatCount(int vi)
           
 Mat getCatMap()
           
 Mat getCatOfs()
           
 Mat getClassLabels()
           
 Mat getDefaultSubstValues()
           
 int getLayout()
           
 Mat getMissing()
           
 int getNAllVars()
           
 Mat getNormCatResponses()
           
 int getNSamples()
           
 int getNTestSamples()
           
 int getNTrainSamples()
           
 int getNVars()
           
 Mat getResponses()
           
 int getResponseType()
           
 void getSample(Mat varIdx, int sidx, float buf)
           
 Mat getSamples()
           
 Mat getSampleWeights()
           
static Mat getSubVector(Mat vec, Mat idx)
           
 Mat getTestNormCatResponses()
           
 Mat getTestResponses()
           
 Mat getTestSampleIdx()
           
 Mat getTestSampleWeights()
           
 Mat getTrainNormCatResponses()
           
 Mat getTrainResponses()
           
 Mat getTrainSampleIdx()
           
 Mat getTrainSamples()
           
 Mat getTrainSamples(int layout, boolean compressSamples, boolean compressVars)
           
 Mat getTrainSampleWeights()
           
 void getValues(int vi, Mat sidx, float values)
           
 Mat getVarIdx()
           
 Mat getVarType()
           
 void setTrainTestSplit(int count)
           
 void setTrainTestSplit(int count, boolean shuffle)
           
 void setTrainTestSplitRatio(double ratio)
           
 void setTrainTestSplitRatio(double ratio, boolean shuffle)
           
 void shuffleTrainTest()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCatCount

public int getCatCount(int vi)

getCatMap

public Mat getCatMap()

getCatOfs

public Mat getCatOfs()

getClassLabels

public Mat getClassLabels()

getDefaultSubstValues

public Mat getDefaultSubstValues()

getLayout

public int getLayout()

getMissing

public Mat getMissing()

getNAllVars

public int getNAllVars()

getNormCatResponses

public Mat getNormCatResponses()

getNSamples

public int getNSamples()

getNTestSamples

public int getNTestSamples()

getNTrainSamples

public int getNTrainSamples()

getNVars

public int getNVars()

getResponses

public Mat getResponses()

getResponseType

public int getResponseType()

getSample

public void getSample(Mat varIdx,
                      int sidx,
                      float buf)

getSamples

public Mat getSamples()

getSampleWeights

public Mat getSampleWeights()

getSubVector

public static Mat getSubVector(Mat vec,
                               Mat idx)

getTestNormCatResponses

public Mat getTestNormCatResponses()

getTestResponses

public Mat getTestResponses()

getTestSampleIdx

public Mat getTestSampleIdx()

getTestSampleWeights

public Mat getTestSampleWeights()

getTrainNormCatResponses

public Mat getTrainNormCatResponses()

getTrainResponses

public Mat getTrainResponses()

getTrainSampleIdx

public Mat getTrainSampleIdx()

getTrainSamples

public Mat getTrainSamples()

getTrainSamples

public Mat getTrainSamples(int layout,
                           boolean compressSamples,
                           boolean compressVars)

getTrainSampleWeights

public Mat getTrainSampleWeights()

getValues

public void getValues(int vi,
                      Mat sidx,
                      float values)

getVarIdx

public Mat getVarIdx()

getVarType

public Mat getVarType()

setTrainTestSplit

public void setTrainTestSplit(int count)

setTrainTestSplit

public void setTrainTestSplit(int count,
                              boolean shuffle)

setTrainTestSplitRatio

public void setTrainTestSplitRatio(double ratio)

setTrainTestSplitRatio

public void setTrainTestSplitRatio(double ratio,
                                   boolean shuffle)

shuffleTrainTest

public void shuffleTrainTest()

OpenCV 3.0.0-rc1 Documentation