src/utils/matrix/MMatrix.java
public Matrix mean(Matrix result) throws MatrixException {
        if (!hasProcedureFactory()) return count(true, result);
        else {
            double expressionLock = procedureFactory.startExpression(this);
            count(true, result);
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createMeanExpression(expressionLock, this, result);
            return result;
        }
    }
/**
     * Calculates mean.
     *
     * @param result result matrix.
     * @return resulting mean
     * @throws MatrixException throws exception if matrices are incorrectly provided.
     */
Calculates mean.
@param result result matrix.
@return resulting mean
@throws MatrixException throws exception if matrices are incorrectly provided.
Calculates mean . @param result result matrix . @return resulting mean @throws MatrixException throws exception if matrices are incorrectly provided .
public Matrix mean(Matrix result) throws MatrixException {
        if (!hasProcedureFactory()) return count(true, result);
        else {
            double expressionLock = procedureFactory.startExpression(this);
            count(true, result);
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createMeanExpression(expressionLock, this, result);
            return result;
        }
    }
public Matrix mean ( Matrix result ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) return count ( true , result ) ; else { double expressionLock = procedureFactory . startExpression ( this ) ; count ( true , result ) ; result . setProcedureFactory ( procedureFactory ) ; procedureFactory . createMeanExpression ( expressionLock , this , result ) ; return result ; } }
Calculates mean.
Calculates mean .