Java Integer Divide divData(int numTest, int numTrain)

Here you can find the source of divData(int numTest, int numTrain)

Description

div Data

License

Apache License

Declaration

public static int[] divData(int numTest, int numTrain) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int[] divData(int numTest, int numTrain) {
        int[] select = new int[numTest];
        int tem1 = 0;
        for (int i = 0; i < numTest; i = i + 2) {
            select[tem1] = i;//  w  ww  . j  a v  a 2 s .c  o m
            if (tem1 < numTest - 1) {
                select[tem1 + 1] = numTrain + numTest - 1 - i;
                tem1 = tem1 + 2;
            } else {
                break;
            }
        }
        return select;
    }
}

Related

  1. divCeil(int a, int b)
  2. divCeil(int a, int b)
  3. divCeil(int nNumerator, int nDenominator)
  4. divCeil(int pNum, int pDivisor)
  5. divCeil(int value, int divisor)
  6. dividable(final String charBitmap, final int row)
  7. divide(final String bitmap, final int row)
  8. divide(int numerator, int denominator)
  9. divide(int numerator, int denominator)