src/utils/matrix/AbstractMatrix.java
public void averagePool(Matrix result) throws MatrixException {
        if (!hasProcedureFactory()) applyAveragePool(result);
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            applyAveragePool(result);
            procedureFactory.createAveragePoolExpression(expressionLock, this, result, getStride(), getFilterRowSize(), getFilterColumnSize());
        }
    }
/**
     * Calculates average pooling operation for this matrix.
     *
     * @param result result matrix.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Calculates average pooling operation for this matrix.

@param result result matrix.
@throws MatrixException throws exception if matrix operation fails.
Calculates average pooling operation for this matrix . @param result result matrix . @throws MatrixException throws exception if matrix operation fails .
public void averagePool(Matrix result) throws MatrixException {
        if (!hasProcedureFactory()) applyAveragePool(result);
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            applyAveragePool(result);
            procedureFactory.createAveragePoolExpression(expressionLock, this, result, getStride(), getFilterRowSize(), getFilterColumnSize());
        }
    }
public void averagePool ( Matrix result ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) applyAveragePool ( result ) ; else { result . setProcedureFactory ( procedureFactory ) ; double expressionLock = procedureFactory . startExpression ( this ) ; applyAveragePool ( result ) ; procedureFactory . createAveragePoolExpression ( expressionLock , this , result , getStride ( ) , getFilterRowSize ( ) , getFilterColumnSize ( ) ) ; } }
Calculates average pooling operation for this matrix.
Calculates average pooling operation for this matrix .