src/utils/procedure/expression/AbstractExpression.java
public void calculateGradientStep(int sampleIndex, int lastSampleIndex) throws MatrixException, DynamicParamException {
        updateGradientDependency(sampleIndex);
        if (executeAsSingleStep() && sampleIndex == lastSampleIndex) calculateGradient();
        else calculateGradient(sampleIndex);
        if (previousExpression != null) previousExpression.calculateGradientStep(sampleIndex, lastSampleIndex);
    }
/**
     * Calculates entire gradient expression chain including regulation.
     *
     * @param sampleIndex sample index
     * @param lastSampleIndex last sample index
     * @throws MatrixException throws exception if calculation fails.
     * @throws DynamicParamException throws exception if parameter (params) setting fails.
     */
Calculates entire gradient expression chain including regulation.

@param sampleIndex sample index
@param lastSampleIndex last sample index
@throws MatrixException throws exception if calculation fails.
@throws DynamicParamException throws exception if parameter (params) setting fails.
Calculates entire gradient expression chain including regulation . @param sampleIndex sample index @param lastSampleIndex last sample index @throws MatrixException throws exception if calculation fails . @throws DynamicParamException throws exception if parameter ( params ) setting fails .
public void calculateGradientStep(int sampleIndex, int lastSampleIndex) throws MatrixException, DynamicParamException {
        updateGradientDependency(sampleIndex);
        if (executeAsSingleStep() && sampleIndex == lastSampleIndex) calculateGradient();
        else calculateGradient(sampleIndex);
        if (previousExpression != null) previousExpression.calculateGradientStep(sampleIndex, lastSampleIndex);
    }
public void calculateGradientStep ( int sampleIndex , int lastSampleIndex ) throws MatrixException , DynamicParamException { updateGradientDependency ( sampleIndex ) ; if ( executeAsSingleStep ( ) && sampleIndex == lastSampleIndex ) calculateGradient ( ) ; else calculateGradient ( sampleIndex ) ; if ( previousExpression != null ) previousExpression . calculateGradientStep ( sampleIndex , lastSampleIndex ) ; }
Calculates entire gradient expression chain including regulation.
Calculates entire gradient expression chain including regulation .