Exemple #1
0
    } // end of randomaction

    /*
     * Updates the Q table in case that the state does not exist in the q
     */
    void updateStates()
    {
        if (Q.Count < stateArray.size())
        {
            for (int i = Q.Count; i < stateArray.size(); i++)
            {
                float[] newRow = new float[actionSize];
                Q.Add(newRow);
            }
        }
    } // end of updateStates