Esempio n. 1
0
        private List <double> MyQValues(List <int> state)
        {
            List <double> vals = qValuesTable.GetAt(state);

            if (vals == null)
            {
                vals = new List <double>();
                for (int i = 0; i < actions; i++)
                {
                    vals.Add(0);
                }
                qValuesTable.SetAt(state, vals);
            }
            return(vals);
        }
Esempio n. 2
0
 public double GetQValue(List <int> inputs)
 {
     return(qValues.GetAt(inputs));
 }