src/core/reinforcement/function/AbstractFunctionEstimator.java
public int argmin(Matrix stateValues, HashSet<Integer> availableActions) {
        int minAction = -1;
        double minValue = Double.POSITIVE_INFINITY;
        for (int action : availableActions) {
            double actionValue = stateValues.getValue(getAction(action), 0);
            if (minValue == Double.POSITIVE_INFINITY || minValue > actionValue) {
                minValue = actionValue;
                minAction = action;
            }
        }
        return minAction;
    }
/**
     * Returns action with minimum state value given available actions.
     *
     * @param stateValues state values.
     * @param availableActions actions available in state.
     * @return action with minimum state value.
     */
Returns action with minimum state value given available actions.

@param stateValues state values.
@param availableActions actions available in state.
@return action with minimum state value.
Returns action with minimum state value given available actions . @param stateValues state values . @param availableActions actions available in state . @return action with minimum state value .
public int argmin(Matrix stateValues, HashSet<Integer> availableActions) {
        int minAction = -1;
        double minValue = Double.POSITIVE_INFINITY;
        for (int action : availableActions) {
            double actionValue = stateValues.getValue(getAction(action), 0);
            if (minValue == Double.POSITIVE_INFINITY || minValue > actionValue) {
                minValue = actionValue;
                minAction = action;
            }
        }
        return minAction;
    }
public int argmin ( Matrix stateValues , HashSet < Integer > availableActions ) { int minAction = - 1 ; double minValue = Double . POSITIVE_INFINITY ; for ( int action : availableActions ) { double actionValue = stateValues . getValue ( getAction ( action ) , 0 ) ; if ( minValue == Double . POSITIVE_INFINITY || minValue > actionValue ) { minValue = actionValue ; minAction = action ; } } return minAction ; }
Returns action with minimum state value given available actions.
Returns action with minimum state value given available actions .