code: public INDArray convertToComponents(INDArray data) {
          INDArray dx = data.subRowVector(mean);
          return Nd4j.tensorMmul(eigenvectors.transpose(), dx, new int[][] {{1}, {1}}).transposei();
      }
docs: Takes a set of data on each row, with the same number of features as the constructing data
  and returns the data in the coordinates of the basis set about the mean.
  @param data Data of the same features used to construct the PCA object
  @return The record in terms of the principal component vectors, you can set unused ones to zero.