CvSVMParams Constructor (SVMType, SVMKernelType, Double, Double, Double, Double, Double, Double, CvMat, CvTermCriteria) OpenCvSharp Class Library
Constructor

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public CvSVMParams(
	SVMType svmType,
	SVMKernelType kernelType,
	double degree,
	double gamma,
	double coef0,
	double c,
	double nu,
	double p,
	CvMat classWeights,
	CvTermCriteria termCrit
)

Parameters

svmType
Type: OpenCvSharp.CPlusPlusSVMType
Type of SVM
kernelType
Type: OpenCvSharp.CPlusPlusSVMKernelType
The kernel type
degree
Type: SystemDouble
for poly
gamma
Type: SystemDouble
for poly/rbf/sigmoid
coef0
Type: SystemDouble
for poly/sigmoid
c
Type: SystemDouble
for SVMType.CSvc, SVMType.EpsSvr and SVMType.NuSvr
nu
Type: SystemDouble
for SVMType.NuSvc, SVMType.OneClass and SVMType.NuSvr
p
Type: SystemDouble
for SVMType.EpsSvr
classWeights
Type: OpenCvSharpCvMat
for SVMType.CSvc
termCrit
Type: OpenCvSharpCvTermCriteria
Termination criteria
See Also

Reference