OpenCV 3.0.0-rc1

org.opencv.ml
Class SVM

java.lang.Object
  extended by org.opencv.core.Algorithm
      extended by org.opencv.ml.StatModel
          extended by org.opencv.ml.SVM

public class SVM
extends StatModel


Field Summary
static int C
           
static int C_SVC
           
static int CHI2
           
static int COEF
           
static int CUSTOM
           
static int DEGREE
           
static int EPS_SVR
           
static int GAMMA
           
static int INTER
           
static int LINEAR
           
static int NU
           
static int NU_SVC
           
static int NU_SVR
           
static int ONE_CLASS
           
static int P
           
static int POLY
           
static int RBF
           
static int SIGMOID
           
 
Fields inherited from class org.opencv.ml.StatModel
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
 
Method Summary
static SVM create()
           
 double getC()
           
 Mat getClassWeights()
           
 double getCoef0()
           
 double getDecisionFunction(int i, Mat alpha, Mat svidx)
           
 double getDegree()
           
 double getGamma()
           
 int getKernelType()
           
 double getNu()
           
 double getP()
           
 Mat getSupportVectors()
           
 TermCriteria getTermCriteria()
           
 int getType()
           
 void setC(double val)
           
 void setClassWeights(Mat val)
           
 void setCoef0(double val)
           
 void setDegree(double val)
           
 void setGamma(double val)
           
 void setKernel(int kernelType)
           
 void setNu(double val)
           
 void setP(double val)
           
 void setTermCriteria(TermCriteria val)
           
 void setType(int val)
           
 
Methods inherited from class org.opencv.ml.StatModel
empty, getVarCount, isClassifier, isTrained, predict, predict, train
 
Methods inherited from class org.opencv.core.Algorithm
clear, getDefaultName, save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

C

public static final int C
See Also:
Constant Field Values

C_SVC

public static final int C_SVC
See Also:
Constant Field Values

CHI2

public static final int CHI2
See Also:
Constant Field Values

COEF

public static final int COEF
See Also:
Constant Field Values

CUSTOM

public static final int CUSTOM
See Also:
Constant Field Values

DEGREE

public static final int DEGREE
See Also:
Constant Field Values

EPS_SVR

public static final int EPS_SVR
See Also:
Constant Field Values

GAMMA

public static final int GAMMA
See Also:
Constant Field Values

INTER

public static final int INTER
See Also:
Constant Field Values

LINEAR

public static final int LINEAR
See Also:
Constant Field Values

NU

public static final int NU
See Also:
Constant Field Values

NU_SVC

public static final int NU_SVC
See Also:
Constant Field Values

NU_SVR

public static final int NU_SVR
See Also:
Constant Field Values

ONE_CLASS

public static final int ONE_CLASS
See Also:
Constant Field Values

P

public static final int P
See Also:
Constant Field Values

POLY

public static final int POLY
See Also:
Constant Field Values

RBF

public static final int RBF
See Also:
Constant Field Values

SIGMOID

public static final int SIGMOID
See Also:
Constant Field Values
Method Detail

create

public static SVM create()

getC

public double getC()

getClassWeights

public Mat getClassWeights()

getCoef0

public double getCoef0()

getDecisionFunction

public double getDecisionFunction(int i,
                                  Mat alpha,
                                  Mat svidx)

getDegree

public double getDegree()

getGamma

public double getGamma()

getKernelType

public int getKernelType()

getNu

public double getNu()

getP

public double getP()

getSupportVectors

public Mat getSupportVectors()

getTermCriteria

public TermCriteria getTermCriteria()

getType

public int getType()

setC

public void setC(double val)

setClassWeights

public void setClassWeights(Mat val)

setCoef0

public void setCoef0(double val)

setDegree

public void setDegree(double val)

setGamma

public void setGamma(double val)

setKernel

public void setKernel(int kernelType)

setNu

public void setNu(double val)

setP

public void setP(double val)

setTermCriteria

public void setTermCriteria(TermCriteria val)

setType

public void setType(int val)

OpenCV 3.0.0-rc1 Documentation