Package gov.nih.mipav.model.algorithms
Class LIBSVM.Solver
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.LIBSVM.Solver
-
- Direct Known Subclasses:
LIBSVM.Solver_NU
- Enclosing class:
- LIBSVM
class LIBSVM.Solver extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classLIBSVM.Solver.SolutionInfo
-
Field Summary
Fields Modifier and Type Field Description (package private) int[]active_set(package private) intactive_size(package private) double[]alpha(package private) byte[]alpha_status(package private) doubleCn(package private) doubleCp(package private) doubleeps(package private) byteFREE(package private) double[]G(package private) double[]G_bar(package private) doubleINF(package private) intl(package private) byteLOWER_BOUND(package private) double[]p(package private) LIBSVM.QMatrixQ(package private) double[]QD(package private) booleanunshrink(package private) byteUPPER_BOUND(package private) byte[]y
-
Constructor Summary
Constructors Constructor Description Solver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanbe_shrunk(int i, double Gmax1, double Gmax2)(package private) doublecalculate_rho()(package private) voiddo_shrinking()(package private) doubleget_C(int i)(package private) booleanis_free(int i)(package private) booleanis_lower_bound(int i)(package private) booleanis_upper_bound(int i)(package private) voidreconstruct_gradient()(package private) intselect_working_set(int[] working_set)(package private) voidSolve(int l, LIBSVM.QMatrix Q, double[] p_, byte[] y_, double[] alpha_, double Cp, double Cn, double eps, LIBSVM.Solver.SolutionInfo si, int shrinking)(package private) voidswap_index(int i, int j)(package private) voidupdate_alpha_status(int i)
-
-
-
Field Detail
-
active_size
int active_size
-
y
byte[] y
-
G
double[] G
-
LOWER_BOUND
final byte LOWER_BOUND
- See Also:
- Constant Field Values
-
UPPER_BOUND
final byte UPPER_BOUND
- See Also:
- Constant Field Values
-
FREE
final byte FREE
- See Also:
- Constant Field Values
-
alpha_status
byte[] alpha_status
-
alpha
double[] alpha
-
Q
LIBSVM.QMatrix Q
-
QD
double[] QD
-
eps
double eps
-
Cp
double Cp
-
Cn
double Cn
-
p
double[] p
-
active_set
int[] active_set
-
G_bar
double[] G_bar
-
l
int l
-
unshrink
boolean unshrink
-
INF
final double INF
- See Also:
- Constant Field Values
-
-
Method Detail
-
get_C
double get_C(int i)
-
update_alpha_status
void update_alpha_status(int i)
-
is_upper_bound
boolean is_upper_bound(int i)
-
is_lower_bound
boolean is_lower_bound(int i)
-
is_free
boolean is_free(int i)
-
swap_index
void swap_index(int i, int j)
-
reconstruct_gradient
void reconstruct_gradient()
-
Solve
void Solve(int l, LIBSVM.QMatrix Q, double[] p_, byte[] y_, double[] alpha_, double Cp, double Cn, double eps, LIBSVM.Solver.SolutionInfo si, int shrinking)
-
select_working_set
int select_working_set(int[] working_set)
-
be_shrunk
private boolean be_shrunk(int i, double Gmax1, double Gmax2)
-
do_shrinking
void do_shrinking()
-
calculate_rho
double calculate_rho()
-
-