private void preprocessDataOne(){
        // Check row and column lengths
        this.numberOfRows = this.values.length;
        this.numberOfColumns = this.values[0].length;
        for(int i=1; i<this.numberOfRows; i++){
                if(this.values[i].length!=this.numberOfColumns)throw new IllegalArgumentException("All rows of the value matrix must be of the same length");
        }
        for(int i=0; i<this.numberOfRows; i++){
                if(this.errors[i].length!=this.numberOfColumns)throw new IllegalArgumentException("All rows of the error matrix must be of the same length as those of the value matrix");
        }
        this.diagonalLength = this.numberOfRows;
        if(this.numberOfRows>this.numberOfColumns)this.diagonalLength = this.numberOfColumns;

        // Convert errors to variances
        for(int i=0; i<this.numberOfRows; i++){
            for(int j=0; j<this.numberOfColumns; j++){
                this.errors[i][j] *= this.errors[i][j];
            }
        }
    }