View source: R/probabilistic.R
expectedRewardsBeforeHittingA | R Documentation |
Given a markovchain object and reward values for every state, function calculates expected reward value for a set A of states after n steps.
expectedRewardsBeforeHittingA(markovchain, A, state, rewards, n)
markovchain |
the markovchain-class object |
A |
set of states for first passage expected reward |
state |
initial state |
rewards |
vector depicting rewards coressponding to states |
n |
no of steps of the process |
The function returns the value of expected first passage rewards given rewards coressponding to every state, an initial state and number of steps.
returns a expected reward (numerical value) as described above
Sai Bhargav Yalamanchi, Vandit Jain
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.