public class QModel extends Object
| Constructor and Description |
|---|
QModel() |
QModel(int stateCount,
int actionCount) |
QModel(int stateCount,
int actionCount,
double initialQ) |
| Modifier and Type | Method and Description |
|---|---|
IndexValue |
actionWithMaxQAtState(int stateId,
Set<Integer> actionsAtState) |
IndexValue |
actionWithSoftMaxQAtState(int stateId,
Set<Integer> actionsAtState,
Random random) |
void |
copy(QModel rhs) |
boolean |
equals(Object rhs) |
double |
getAlpha(int stateId,
int actionId) |
double |
getQ(int stateId,
int actionId) |
QModel |
makeCopy() |
void |
setAlpha(double defaultAlpha) |
void |
setQ(int stateId,
int actionId,
double Qij) |
public QModel(int stateCount,
int actionCount,
double initialQ)
public QModel(int stateCount,
int actionCount)
public QModel()
public QModel makeCopy()
public void copy(QModel rhs)
public double getQ(int stateId,
int actionId)
public void setQ(int stateId,
int actionId,
double Qij)
public double getAlpha(int stateId,
int actionId)
public void setAlpha(double defaultAlpha)
public IndexValue actionWithMaxQAtState(int stateId, Set<Integer> actionsAtState)
public IndexValue actionWithSoftMaxQAtState(int stateId, Set<Integer> actionsAtState, Random random)
Copyright © 2017. All rights reserved.