calcWeights {MDP} | R Documentation |
Calculate weights based on current policy. Normally run after an optimal policy has been found.
calcWeights(mdp, iW, criterion="expected", iDur=0, rate=0.1, rateBase=365, termValues)
mdp |
The MDP loaded using loadMDP. |
iW |
Vector of weight indices we want to calc weights for. |
criterion |
The criterion used. If expected used expected reward, if discount used discounted rewards, if average use average rewards. |
iDur |
Index of duration such that discount rates can be calculated. |
rate |
The interest rate. |
rateBase |
The time-horizon the rate is valid over. |
g |
The optimal gain (g) calculated (used if criterion = "average" ). |
Nothing.
Lars Relund lars@relund.dk