#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 CvSVMParams * | params |
CvMemStorage * | storage |
CvSVMKernelRow | lru_list |
CvSVMKernelRow * | rows |
int | alpha_count |
double * | G |
double * | alpha |
schar * | alpha_status |
schar * | y |
double * | b |
float * | buf [2] |
double | eps |
int | max_iter |
double | C [2] |
CvSVMKernel * | kernel |
SelectWorkingSet | select_working_set_func |
CalcRho | calc_rho_func |
GetRow | get_row_func |
typedef void(CvSVMSolver::* CvSVMSolver::CalcRho) (double &rho, double &r) |
typedef float*(CvSVMSolver::* CvSVMSolver::GetRow) (int i, float *row, float *dst, bool existed) |
CvSVMSolver::CvSVMSolver | ( | ) |
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 |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
double* CvSVMSolver::alpha |
int CvSVMSolver::alpha_count |
schar* CvSVMSolver::alpha_status |
double* CvSVMSolver::b |
float* CvSVMSolver::buf[2] |
double CvSVMSolver::C[2] |
int CvSVMSolver::cache_line_size |
int CvSVMSolver::cache_size |
CalcRho CvSVMSolver::calc_rho_func |
double CvSVMSolver::eps |
double* CvSVMSolver::G |
GetRow CvSVMSolver::get_row_func |
CvSVMKernel* CvSVMSolver::kernel |
CvSVMKernelRow CvSVMSolver::lru_list |
int CvSVMSolver::max_iter |
const CvSVMParams* CvSVMSolver::params |
CvSVMKernelRow* CvSVMSolver::rows |
int CvSVMSolver::sample_count |
const float** CvSVMSolver::samples |
SelectWorkingSet CvSVMSolver::select_working_set_func |
CvMemStorage* CvSVMSolver::storage |
int CvSVMSolver::var_count |
schar* CvSVMSolver::y |