src/utils/procedure/expression/RandomPoolExpression.java
public void calculateExpression(int sampleIndex) throws MatrixException {
        if (argument1.getMatrix(sampleIndex) == null) throw new MatrixException(getExpressionName() + ": Arguments for operation not defined");
        if (inputPos == null) inputPos = new HashMap<>();
        inputPos.put(sampleIndex, new HashMap<>());
        randomPoolMatrixOperation.apply(argument1.getMatrix(sampleIndex), inputPos.get(sampleIndex), result.getNewMatrix(sampleIndex));
    }
/**
     * Calculates expression.
     *
     * @param sampleIndex sample index
     * @throws MatrixException throws exception if calculation fails.
     */
Calculates expression.

@param sampleIndex sample index
@throws MatrixException throws exception if calculation fails.
Calculates expression . @param sampleIndex sample index @throws MatrixException throws exception if calculation fails .
public void calculateExpression(int sampleIndex) throws MatrixException {
        if (argument1.getMatrix(sampleIndex) == null) throw new MatrixException(getExpressionName() + ": Arguments for operation not defined");
        if (inputPos == null) inputPos = new HashMap<>();
        inputPos.put(sampleIndex, new HashMap<>());
        randomPoolMatrixOperation.apply(argument1.getMatrix(sampleIndex), inputPos.get(sampleIndex), result.getNewMatrix(sampleIndex));
    }
public void calculateExpression ( int sampleIndex ) throws MatrixException { if ( argument1 . getMatrix ( sampleIndex ) == null ) throw new MatrixException ( getExpressionName ( ) + ": Arguments for operation not defined" ) ; if ( inputPos == null ) inputPos = new HashMap < > ( ) ; inputPos . put ( sampleIndex , new HashMap < > ( ) ) ; randomPoolMatrixOperation . apply ( argument1 . getMatrix ( sampleIndex ) , inputPos . get ( sampleIndex ) , result . getNewMatrix ( sampleIndex ) ) ; }
Calculates expression.
Calculates expression .