public double[] rowMeans(){
            double[] means = new double[this.numberOfRows];
            for(int i=0; i<this.numberOfRows; i++){
                means[i] = 0.0;
                for(int j=0; j<this.numberOfColumns; j++){
                    means[i] += this.matrix[i][j];
                }
                means[i] /= this.numberOfColumns;
            }
            return means;
        }