DataSharp/Data/Analysis/SupportVectorMachine.cs
/// <summary>
/// Returns a LinkedList&lt;int> that contains the indices whose correspond lagrange multipliers are non-bound values.
/// </summary>
/// <returns></returns>
Returns a LinkedList that contains the indices whose correspond lagrange multipliers are non-bound values.
Returns a LinkedList that contains the indices whose correspond lagrange multipliers are non - bound values .
private LinkedList<int> GetNonBoundIndices()
        {
            LinkedList<int> nonBoundIndices = new LinkedList<int>();
            for (int i = 0; i < sampleCount; i++)
            {
                if ((alphas[i] > 0) && (alphas[i] < C))
                    nonBoundIndices.AddLast(i);
            }
            return nonBoundIndices;
        }
private LinkedList < int > GetNonBoundIndices ( ) { LinkedList < int > nonBoundIndices = new LinkedList < int > ( ) ; for ( int i = 0 ; i < sampleCount ; i ++ ) { if ( ( alphas [ i ] > 0 ) && ( alphas [ i ] < C ) ) nonBoundIndices . AddLast ( i ) ; } return nonBoundIndices ; }
Returns a LinkedList<int> that contains the indices whose correspond lagrange multipliers are non-bound values.
Returns a LinkedList<int > that contains the indices whose correspond lagrange multipliers are non - bound values .
None