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) |
Object |
clone() |
void |
copy(QModel rhs) |
boolean |
equals(Object rhs) |
int |
getActionCount() |
Matrix |
getAlpha() |
double |
getAlpha(int stateId,
int actionId) |
double |
getGamma() |
Matrix |
getQ() |
double |
getQ(int stateId,
int actionId) |
int |
getStateCount() |
void |
setAlpha(double defaultAlpha) |
void |
setAlpha(Matrix alpha) |
void |
setGamma(double gamma) |
void |
setQ(int stateId,
int actionId,
double Qij) |
void |
setQ(Matrix q) |
public QModel(int stateCount,
int actionCount,
double initialQ)
public QModel(int stateCount,
int actionCount)
public QModel()
public void copy(QModel rhs)
public Matrix getQ()
public double getQ(int stateId,
int actionId)
public void setQ(Matrix q)
public void setQ(int stateId,
int actionId,
double Qij)
public Matrix getAlpha()
public double getAlpha(int stateId,
int actionId)
public void setAlpha(Matrix alpha)
public void setAlpha(double defaultAlpha)
public double getGamma()
public void setGamma(double gamma)
public int getStateCount()
public int getActionCount()
public IndexValue actionWithMaxQAtState(int stateId, Set<Integer> actionsAtState)
public IndexValue actionWithSoftMaxQAtState(int stateId, Set<Integer> actionsAtState, Random random)
Copyright © 2017. All rights reserved.