public class SVM extends StatModel
Modifier and Type | Field and Description |
---|---|
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 |
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Modifier and Type | Method and Description |
---|---|
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() |
Mat |
getUncompressedSupportVectors() |
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) |
empty, getVarCount, isClassifier, isTrained, predict, predict, train
clear, getDefaultName, save
public static final int C
public static final int C_SVC
public static final int CHI2
public static final int COEF
public static final int CUSTOM
public static final int DEGREE
public static final int EPS_SVR
public static final int GAMMA
public static final int INTER
public static final int LINEAR
public static final int NU
public static final int NU_SVC
public static final int NU_SVR
public static final int ONE_CLASS
public static final int P
public static final int POLY
public static final int RBF
public static final int SIGMOID
public static SVM create()
public double getC()
public Mat getClassWeights()
public double getCoef0()
public double getDegree()
public double getGamma()
public int getKernelType()
public double getNu()
public double getP()
public Mat getSupportVectors()
public TermCriteria getTermCriteria()
public int getType()
public Mat getUncompressedSupportVectors()
public void setC(double val)
public void setClassWeights(Mat val)
public void setCoef0(double val)
public void setDegree(double val)
public void setGamma(double val)
public void setKernel(int kernelType)
public void setNu(double val)
public void setP(double val)
public void setTermCriteria(TermCriteria val)
public void setType(int val)