OpenCV  2.4.13.2
Open Source Computer Vision
CvSVMSolver Class Reference

#include <ml.hpp>

Public Types

typedef bool(CvSVMSolver::* SelectWorkingSet) (int &i, int &j)
 
typedef float *(CvSVMSolver::* GetRow) (int i, float *row, float *dst, bool existed)
 
typedef void(CvSVMSolver::* CalcRho) (double &rho, double &r)
 

Public Member Functions

 CvSVMSolver ()
 
 CvSVMSolver (int count, int var_count, const float **samples, schar *y, int alpha_count, double *alpha, double Cp, double Cn, CvMemStorage *storage, CvSVMKernel *kernel, GetRow get_row, SelectWorkingSet select_working_set, CalcRho calc_rho)
 
virtual bool create (int count, int var_count, const float **samples, schar *y, int alpha_count, double *alpha, double Cp, double Cn, CvMemStorage *storage, CvSVMKernel *kernel, GetRow get_row, SelectWorkingSet select_working_set, CalcRho calc_rho)
 
virtual ~CvSVMSolver ()
 
virtual void clear ()
 
virtual bool solve_generic (CvSVMSolutionInfo &si)
 
virtual bool solve_c_svc (int count, int var_count, const float **samples, schar *y, double Cp, double Cn, CvMemStorage *storage, CvSVMKernel *kernel, double *alpha, CvSVMSolutionInfo &si)
 
virtual bool solve_nu_svc (int count, int var_count, const float **samples, schar *y, CvMemStorage *storage, CvSVMKernel *kernel, double *alpha, CvSVMSolutionInfo &si)
 
virtual bool solve_one_class (int count, int var_count, const float **samples, CvMemStorage *storage, CvSVMKernel *kernel, double *alpha, CvSVMSolutionInfo &si)
 
virtual bool solve_eps_svr (int count, int var_count, const float **samples, const float *y, CvMemStorage *storage, CvSVMKernel *kernel, double *alpha, CvSVMSolutionInfo &si)
 
virtual bool solve_nu_svr (int count, int var_count, const float **samples, const float *y, CvMemStorage *storage, CvSVMKernel *kernel, double *alpha, CvSVMSolutionInfo &si)
 
virtual float * get_row_base (int i, bool *_existed)
 
virtual float * get_row (int i, float *dst)
 
virtual bool select_working_set (int &i, int &j)
 
virtual bool select_working_set_nu_svm (int &i, int &j)
 
virtual void calc_rho (double &rho, double &r)
 
virtual void calc_rho_nu_svm (double &rho, double &r)
 
virtual float * get_row_svc (int i, float *row, float *dst, bool existed)
 
virtual float * get_row_one_class (int i, float *row, float *dst, bool existed)
 
virtual float * get_row_svr (int i, float *row, float *dst, bool existed)
 

Public Attributes

int sample_count
 
int var_count
 
int cache_size
 
int cache_line_size
 
const float ** samples
 
const CvSVMParamsparams
 
CvMemStoragestorage
 
CvSVMKernelRow lru_list
 
CvSVMKernelRowrows
 
int alpha_count
 
double * G
 
double * alpha
 
scharalpha_status
 
schary
 
double * b
 
float * buf [2]
 
double eps
 
int max_iter
 
double C [2]
 
CvSVMKernelkernel
 
SelectWorkingSet select_working_set_func
 
CalcRho calc_rho_func
 
GetRow get_row_func
 

Member Typedef Documentation

§ CalcRho

typedef void(CvSVMSolver::* CvSVMSolver::CalcRho) (double &rho, double &r)

§ GetRow

typedef float*(CvSVMSolver::* CvSVMSolver::GetRow) (int i, float *row, float *dst, bool existed)

§ SelectWorkingSet

typedef bool(CvSVMSolver::* CvSVMSolver::SelectWorkingSet) (int &i, int &j)

Constructor & Destructor Documentation

§ CvSVMSolver() [1/2]

CvSVMSolver::CvSVMSolver ( )

§ CvSVMSolver() [2/2]

CvSVMSolver::CvSVMSolver ( int  count,
int  var_count,
const float **  samples,
schar y,
int  alpha_count,
double *  alpha,
double  Cp,
double  Cn,
CvMemStorage storage,
CvSVMKernel kernel,
GetRow  get_row,
SelectWorkingSet  select_working_set,
CalcRho  calc_rho 
)

§ ~CvSVMSolver()

virtual CvSVMSolver::~CvSVMSolver ( )
virtual

Member Function Documentation

§ calc_rho()

virtual void CvSVMSolver::calc_rho ( double &  rho,
double &  r 
)
virtual

§ calc_rho_nu_svm()

virtual void CvSVMSolver::calc_rho_nu_svm ( double &  rho,
double &  r 
)
virtual

§ clear()

virtual void CvSVMSolver::clear ( )
virtual

§ create()

virtual bool CvSVMSolver::create ( int  count,
int  var_count,
const float **  samples,
schar y,
int  alpha_count,
double *  alpha,
double  Cp,
double  Cn,
CvMemStorage storage,
CvSVMKernel kernel,
GetRow  get_row,
SelectWorkingSet  select_working_set,
CalcRho  calc_rho 
)
virtual

§ get_row()

virtual float* CvSVMSolver::get_row ( int  i,
float *  dst 
)
virtual

§ get_row_base()

virtual float* CvSVMSolver::get_row_base ( int  i,
bool *  _existed 
)
virtual

§ get_row_one_class()

virtual float* CvSVMSolver::get_row_one_class ( int  i,
float *  row,
float *  dst,
bool  existed 
)
virtual

§ get_row_svc()

virtual float* CvSVMSolver::get_row_svc ( int  i,
float *  row,
float *  dst,
bool  existed 
)
virtual

§ get_row_svr()

virtual float* CvSVMSolver::get_row_svr ( int  i,
float *  row,
float *  dst,
bool  existed 
)
virtual

§ select_working_set()

virtual bool CvSVMSolver::select_working_set ( int i,
int j 
)
virtual

§ select_working_set_nu_svm()

virtual bool CvSVMSolver::select_working_set_nu_svm ( int i,
int j 
)
virtual

§ solve_c_svc()

virtual bool CvSVMSolver::solve_c_svc ( int  count,
int  var_count,
const float **  samples,
schar y,
double  Cp,
double  Cn,
CvMemStorage storage,
CvSVMKernel kernel,
double *  alpha,
CvSVMSolutionInfo si 
)
virtual

§ solve_eps_svr()

virtual bool CvSVMSolver::solve_eps_svr ( int  count,
int  var_count,
const float **  samples,
const float *  y,
CvMemStorage storage,
CvSVMKernel kernel,
double *  alpha,
CvSVMSolutionInfo si 
)
virtual

§ solve_generic()

virtual bool CvSVMSolver::solve_generic ( CvSVMSolutionInfo si)
virtual

§ solve_nu_svc()

virtual bool CvSVMSolver::solve_nu_svc ( int  count,
int  var_count,
const float **  samples,
schar y,
CvMemStorage storage,
CvSVMKernel kernel,
double *  alpha,
CvSVMSolutionInfo si 
)
virtual

§ solve_nu_svr()

virtual bool CvSVMSolver::solve_nu_svr ( int  count,
int  var_count,
const float **  samples,
const float *  y,
CvMemStorage storage,
CvSVMKernel kernel,
double *  alpha,
CvSVMSolutionInfo si 
)
virtual

§ solve_one_class()

virtual bool CvSVMSolver::solve_one_class ( int  count,
int  var_count,
const float **  samples,
CvMemStorage storage,
CvSVMKernel kernel,
double *  alpha,
CvSVMSolutionInfo si 
)
virtual

Member Data Documentation

§ alpha

double* CvSVMSolver::alpha

§ alpha_count

int CvSVMSolver::alpha_count

§ alpha_status

schar* CvSVMSolver::alpha_status

§ b

double* CvSVMSolver::b

§ buf

float* CvSVMSolver::buf[2]

§ C

double CvSVMSolver::C[2]

§ cache_line_size

int CvSVMSolver::cache_line_size

§ cache_size

int CvSVMSolver::cache_size

§ calc_rho_func

CalcRho CvSVMSolver::calc_rho_func

§ eps

double CvSVMSolver::eps

§ G

double* CvSVMSolver::G

§ get_row_func

GetRow CvSVMSolver::get_row_func

§ kernel

CvSVMKernel* CvSVMSolver::kernel

§ lru_list

CvSVMKernelRow CvSVMSolver::lru_list

§ max_iter

int CvSVMSolver::max_iter

§ params

const CvSVMParams* CvSVMSolver::params

§ rows

CvSVMKernelRow* CvSVMSolver::rows

§ sample_count

int CvSVMSolver::sample_count

§ samples

const float** CvSVMSolver::samples

§ select_working_set_func

SelectWorkingSet CvSVMSolver::select_working_set_func

§ storage

CvMemStorage* CvSVMSolver::storage

§ var_count

int CvSVMSolver::var_count

§ y

schar* CvSVMSolver::y

The documentation for this class was generated from the following file: