java.lang.Object
gov.nih.mipav.view.renderer.WildMagic.ProstateFramework.libsvm.Solver
Direct Known Subclasses:
Solver_NU

class Solver extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int[]
     
    (package private) int
     
    (package private) double[]
     
    (package private) byte[]
     
    (package private) double
     
    (package private) double
     
    (package private) double
     
    (package private) static final byte
     
    (package private) double[]
     
    (package private) double[]
     
    (package private) static final double
     
    (package private) int
     
    (package private) static final byte
     
    (package private) double[]
     
    (package private) QMatrix
     
    (package private) double[]
     
    (package private) boolean
     
    (package private) static final byte
     
    (package private) byte[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private boolean
    be_shrunk(int i, double Gmax1, double Gmax2)
     
    (package private) double
     
    (package private) void
     
    (package private) double
    get_C(int i)
     
    (package private) boolean
    is_free(int i)
     
    (package private) boolean
     
    (package private) boolean
     
    (package private) void
     
    (package private) int
    select_working_set(int[] working_set)
     
    (package private) void
    Solve(int l, QMatrix Q, double[] p_, byte[] y_, double[] alpha_, double Cp, double Cn, double eps, Solver.SolutionInfo si, int shrinking)
     
    (package private) void
    swap_index(int i, int j)
     
    (package private) void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • active_size

      int active_size
    • y

      byte[] y
    • G

      double[] G
    • LOWER_BOUND

      static final byte LOWER_BOUND
      See Also:
    • UPPER_BOUND

      static final byte UPPER_BOUND
      See Also:
    • FREE

      static final byte FREE
      See Also:
    • alpha_status

      byte[] alpha_status
    • alpha

      double[] alpha
    • 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

      static final double INF
      See Also:
  • Constructor Details

    • Solver

      Solver()
  • Method Details

    • 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, QMatrix Q, double[] p_, byte[] y_, double[] alpha_, double Cp, double Cn, double eps, 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()