

Public Member Functions | |
| Solver_NU () | |
| 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) |
Private Member Functions | |
| int | select_working_set (int &i, int &j) |
| double | calculate_rho () |
| bool | be_shrunk (int i, double Gmax1, double Gmax2, double Gmax3, double Gmax4) |
| void | do_shrinking () |
Private Attributes | |
| SolutionInfo * | si |
Definition at line 996 of file libsvm.cpp.
| Solver_NU::Solver_NU | ( | ) | [inline] |
Definition at line 999 of file libsvm.cpp.
| bool Solver_NU::be_shrunk | ( | int | i, |
| double | Gmax1, | ||
| double | Gmax2, | ||
| double | Gmax3, | ||
| double | Gmax4 | ||
| ) | [private] |
Definition at line 1128 of file libsvm.cpp.
References Solver::G, Solver::is_lower_bound(), Solver::is_upper_bound(), and Solver::y.
Referenced by do_shrinking().
| double Solver_NU::calculate_rho | ( | ) | [private, virtual] |
Reimplemented from Solver.
Definition at line 1200 of file libsvm.cpp.
References Solver::active_size, Solver::G, INF, Solver::is_lower_bound(), Solver::is_upper_bound(), max(), min(), Solver::SolutionInfo::r, si, and Solver::y.
| void Solver_NU::do_shrinking | ( | ) | [private, virtual] |
Reimplemented from Solver.
Definition at line 1148 of file libsvm.cpp.
References Solver::active_size, be_shrunk(), Solver::eps, Solver::G, INF, Solver::is_lower_bound(), Solver::is_upper_bound(), Solver::l, max(), Solver::reconstruct_gradient(), Solver::swap_index(), Solver::unshrink, and Solver::y.
| int Solver_NU::select_working_set | ( | int & | i, |
| int & | j | ||
| ) | [private, virtual] |
Reimplemented from Solver.
Definition at line 1016 of file libsvm.cpp.
References Solver::active_size, Solver::eps, Solver::G, QMatrix::get_Q(), INF, Solver::is_lower_bound(), Solver::is_upper_bound(), max(), Solver::Q, Solver::QD, TAU, and Solver::y.
| void Solver_NU::Solve | ( | int | l, |
| const QMatrix & | Q, | ||
| const double * | p, | ||
| const schar * | y, | ||
| double * | alpha, | ||
| double | Cp, | ||
| double | Cn, | ||
| double | eps, | ||
| SolutionInfo * | si, | ||
| int | shrinking | ||
| ) | [inline] |
Reimplemented from Solver.
Definition at line 1000 of file libsvm.cpp.
References si.
Referenced by solve_nu_svc(), and solve_nu_svr().
SolutionInfo* Solver_NU::si [private] |
Definition at line 1008 of file libsvm.cpp.
Referenced by calculate_rho(), and Solve().
1.7.2