src/utils/matrix/AbstractMatrix.java
public Matrix meanAsMatrix() throws MatrixException {
        if (!hasProcedureFactory()) return constantAsMatrix(mean());
        else {
            double expressionLock = procedureFactory.startExpression(this);
            Matrix result = constantAsMatrix(mean());
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createMeanExpression(expressionLock, this, result);
            return result;
        }
    }
/**
     * Takes mean of elements of this matrix.<br>
     * Applies masking element wise if this matrix is masked.<br>
     *
     * @throws MatrixException not thrown in any situation.
     * @return mean of matrix.
     */
Takes mean of elements of this matrix.
Applies masking element wise if this matrix is masked.

@throws MatrixException not thrown in any situation.
@return mean of matrix.
Takes mean of elements of this matrix . Applies masking element wise if this matrix is masked . @throws MatrixException not thrown in any situation . @return mean of matrix .
public Matrix meanAsMatrix() throws MatrixException {
        if (!hasProcedureFactory()) return constantAsMatrix(mean());
        else {
            double expressionLock = procedureFactory.startExpression(this);
            Matrix result = constantAsMatrix(mean());
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createMeanExpression(expressionLock, this, result);
            return result;
        }
    }
public Matrix meanAsMatrix ( ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) return constantAsMatrix ( mean ( ) ) ; else { double expressionLock = procedureFactory . startExpression ( this ) ; Matrix result = constantAsMatrix ( mean ( ) ) ; result . setProcedureFactory ( procedureFactory ) ; procedureFactory . createMeanExpression ( expressionLock , this , result ) ; return result ; } }
Takes mean of elements of this matrix.<br>
 Applies masking element wise if this matrix is masked.<br>
Takes mean of elements of this matrix . <br > Applies masking element wise if this matrix is masked . <br >