Description Usage Arguments Details Value Author(s) References Examples

View source: R/2_probabilistic.R

Given a markovchain object and reward values for every state, function calculates expected reward value after n steps.

1 | ```
expectedRewards(markovchain,n,rewards)
``` |

`markovchain` |
the markovchain-class object |

`n` |
no of steps of the process |

`rewards` |
vector depicting rewards coressponding to states |

the function uses a dynamic programming approach to solve a recursive equation described in reference.

returns a vector of expected rewards for different initial states

Vandit Jain

Stochastic Processes: Theory for Applications, Robert G. Gallager, Cambridge University Press

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.