swap_index() public method

public swap_index ( int i, int j ) : void
i int
j int
return void
コード例 #1
0
ファイル: OneClassQ.cs プロジェクト: FXPAL/LibSvmSharp
        public override void SwapIndex(int i, int j)
        {
            _cache.swap_index(i, j);
            base.SwapIndex(i, j);

            Common.Swap(ref _qd[i], ref _qd[j]);
        }
コード例 #2
0
        public override void SwapIndex(int i, int j)
        {
            cache.swap_index(i, j);
            base.SwapIndex(i, j);

            Common.Swap(ref y[i], ref y[j]);
            Common.Swap(ref QD[i], ref QD[j]);
        }