Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
Solver Class Reference
Inheritance diagram for Solver:
Inheritance graph
[legend]

List of all members.

Classes

struct  SolutionInfo

Public Member Functions

void Solve (int l, const QMatrix &Q, const double *p_, const schar *y_, double *alpha_, double Cp, double Cn, double eps, SolutionInfo *si, int shrinking)
 Solver ()
virtual ~Solver ()

Protected Types

enum  { LOWER_BOUND, UPPER_BOUND, FREE }

Protected Member Functions

virtual double calculate_rho ()
virtual void do_shrinking ()
double get_C (int i)
bool is_free (int i)
bool is_lower_bound (int i)
bool is_upper_bound (int i)
void reconstruct_gradient ()
virtual int select_working_set (int &i, int &j)
void swap_index (int i, int j)
void update_alpha_status (int i)

Protected Attributes

int * active_set
int active_size
double * alpha
char * alpha_status
double Cn
double Cp
double eps
double * G
double * G_bar
int l
double * p
const QMatrixQ
const QfloatQD
bool unshrinked
schary

Private Member Functions

bool be_shrunken (int i, double Gmax1, double Gmax2)

Detailed Description

Definition at line 386 of file svm.cpp.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
LOWER_BOUND 
UPPER_BOUND 
FREE 

Definition at line 406 of file svm.cpp.


Constructor & Destructor Documentation

Solver::Solver ( ) [inline]

Definition at line 388 of file svm.cpp.

virtual Solver::~Solver ( ) [inline, virtual]

Definition at line 389 of file svm.cpp.


Member Function Documentation

bool Solver::be_shrunken ( int  i,
double  Gmax1,
double  Gmax2 
) [private]

Definition at line 843 of file svm.cpp.

double Solver::calculate_rho ( ) [protected, virtual]

Reimplemented in Solver_NU.

Definition at line 940 of file svm.cpp.

void Solver::do_shrinking ( ) [protected, virtual]

Reimplemented in Solver_NU.

Definition at line 863 of file svm.cpp.

double Solver::get_C ( int  i) [inline, protected]

Definition at line 419 of file svm.cpp.

bool Solver::is_free ( int  i) [inline, protected]

Definition at line 433 of file svm.cpp.

bool Solver::is_lower_bound ( int  i) [inline, protected]

Definition at line 432 of file svm.cpp.

bool Solver::is_upper_bound ( int  i) [inline, protected]

Definition at line 431 of file svm.cpp.

void Solver::reconstruct_gradient ( ) [protected]

Definition at line 455 of file svm.cpp.

int Solver::select_working_set ( int &  i,
int &  j 
) [protected, virtual]

Reimplemented in Solver_NU.

Definition at line 744 of file svm.cpp.

void Solver::Solve ( int  l,
const QMatrix Q,
const double *  p_,
const schar y_,
double *  alpha_,
double  Cp,
double  Cn,
double  eps,
SolutionInfo si,
int  shrinking 
)

Reimplemented in Solver_NU.

Definition at line 475 of file svm.cpp.

void Solver::swap_index ( int  i,
int  j 
) [protected]

Definition at line 443 of file svm.cpp.

void Solver::update_alpha_status ( int  i) [inline, protected]

Definition at line 423 of file svm.cpp.


Member Data Documentation

int* Solver::active_set [protected]

Definition at line 414 of file svm.cpp.

int Solver::active_size [protected]

Definition at line 403 of file svm.cpp.

double* Solver::alpha [protected]

Definition at line 408 of file svm.cpp.

char* Solver::alpha_status [protected]

Definition at line 407 of file svm.cpp.

double Solver::Cn [protected]

Definition at line 412 of file svm.cpp.

double Solver::Cp [protected]

Definition at line 412 of file svm.cpp.

double Solver::eps [protected]

Definition at line 411 of file svm.cpp.

double* Solver::G [protected]

Definition at line 405 of file svm.cpp.

double* Solver::G_bar [protected]

Definition at line 415 of file svm.cpp.

int Solver::l [protected]

Definition at line 416 of file svm.cpp.

double* Solver::p [protected]

Definition at line 413 of file svm.cpp.

const QMatrix* Solver::Q [protected]

Definition at line 409 of file svm.cpp.

const Qfloat* Solver::QD [protected]

Definition at line 410 of file svm.cpp.

bool Solver::unshrinked [protected]

Definition at line 417 of file svm.cpp.

schar* Solver::y [protected]

Definition at line 404 of file svm.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


cl_libsvm
Author(s): Gabor Melis
autogenerated on Sun Oct 6 2013 12:19:01