code: public double[][] buildTrialNodeMatrix(double[] weight) {
          int i, j, k;
          for (i = 0; i < nodeNumber; i++) {
              nodeMatrix[i][0] = weight[i + 1];
              for (j = 1; j <= layerNumber; j++) {
                  nodeMatrix[i][j] = 0.0;
                  for (k = 0; k < nodeNumber; k++) {
                      if (apspMatrix[i][k] == j) {
                          nodeMatrix[i][j] += weight[k + 1];
                      }
                  }
              }
          }
          return nodeMatrix;
      }
docs: Build trial node Matrix.
  
  @param weight an array contains the weight of atom
  @return trial node matrix.