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); }
public double GetQValue(List <int> inputs) { return(qValues.GetAt(inputs)); }