src/utils/matrix/AbstractMatrix.java
public void randomPool(Matrix result, HashMap<Integer, Integer> inputPos) throws MatrixException {
        if (!hasProcedureFactory()) applyMaxPool(result, inputPos);
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            applyRandomPool(result, inputPos);
            procedureFactory.createRandomPoolExpression(expressionLock, this, result, getStride(), getFilterRowSize(), getFilterColumnSize());
        }
    }
/**
     * Calculates random pooling operation for this matrix and returns input positions.
     *
     * @param result result matrix.
     * @param inputPos input positions for each row and col value.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Calculates random pooling operation for this matrix and returns input positions.

@param result result matrix.
@param inputPos input positions for each row and col value.
@throws MatrixException throws exception if matrix operation fails.
Calculates random pooling operation for this matrix and returns input positions . @param result result matrix . @param inputPos input positions for each row and col value . @throws MatrixException throws exception if matrix operation fails .
public void randomPool(Matrix result, HashMap<Integer, Integer> inputPos) throws MatrixException {
        if (!hasProcedureFactory()) applyMaxPool(result, inputPos);
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            applyRandomPool(result, inputPos);
            procedureFactory.createRandomPoolExpression(expressionLock, this, result, getStride(), getFilterRowSize(), getFilterColumnSize());
        }
    }
public void randomPool ( Matrix result , HashMap < Integer , Integer > inputPos ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) applyMaxPool ( result , inputPos ) ; else { result . setProcedureFactory ( procedureFactory ) ; double expressionLock = procedureFactory . startExpression ( this ) ; applyRandomPool ( result , inputPos ) ; procedureFactory . createRandomPoolExpression ( expressionLock , this , result , getStride ( ) , getFilterRowSize ( ) , getFilterColumnSize ( ) ) ; } }
Calculates random pooling operation for this matrix and returns input positions.
Calculates random pooling operation for this matrix and returns input positions .