C# Class LibSvm.Solver

显示文件 Open project: antlypls/LibSvmSharp Class Usage Examples

Protected Properties

Property Type Description
_activeSize int
_eps double
_g double[]
_length int
_q QMatrix
_qd double[]
_unshrink bool
_y sbyte[]

Public Methods

Method Description
Solve ( int length, QMatrix Q, double p_, sbyte y_, double alpha_, double Cp, double Cn, double eps, LibSvm.SolutionInfo si, bool shrinking ) : void

Protected Methods

Method Description
CalculateRho ( ) : double
DoShrinking ( ) : void
IsFree ( int i ) : bool
IsLowerBound ( int i ) : bool
IsUpperBound ( int i ) : bool
ReconstructGradient ( ) : void
SelectWorkingSet ( int workingSet ) : int
SwapIndex ( int i, int j ) : void

Private Methods

Method Description
BeShrunk ( int i, double Gmax1, double Gmax2 ) : bool
GetC ( int i ) : double
UpdateAlphaStatus ( int i ) : void

Method Details

CalculateRho() protected method

protected CalculateRho ( ) : double
return double

DoShrinking() protected method

protected DoShrinking ( ) : void
return void

IsFree() protected method

protected IsFree ( int i ) : bool
i int
return bool

IsLowerBound() protected method

protected IsLowerBound ( int i ) : bool
i int
return bool

IsUpperBound() protected method

protected IsUpperBound ( int i ) : bool
i int
return bool

ReconstructGradient() protected method

protected ReconstructGradient ( ) : void
return void

SelectWorkingSet() protected method

protected SelectWorkingSet ( int workingSet ) : int
workingSet int
return int

Solve() public method

public Solve ( int length, QMatrix Q, double p_, sbyte y_, double alpha_, double Cp, double Cn, double eps, LibSvm.SolutionInfo si, bool shrinking ) : void
length int
Q QMatrix
p_ double
y_ sbyte
alpha_ double
Cp double
Cn double
eps double
si LibSvm.SolutionInfo
shrinking bool
return void

SwapIndex() protected method

protected SwapIndex ( int i, int j ) : void
i int
j int
return void

Property Details

_activeSize protected_oe property

protected int _activeSize
return int

_eps protected_oe property

protected double _eps
return double

_g protected_oe property

protected double[] _g
return double[]

_length protected_oe property

protected int _length
return int

_q protected_oe property

protected QMatrix,LibSvm _q
return QMatrix

_qd protected_oe property

protected double[] _qd
return double[]

_unshrink protected_oe property

protected bool _unshrink
return bool

_y protected_oe property

protected sbyte[] _y
return sbyte[]