Skip to content

Commit 20c6711

Browse files
committed
docs
1 parent d934722 commit 20c6711

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,7 @@ from markov_walk import MarkovWalk
6161

6262
step_right_probs = [0.3, 0.5, 0.7, 0.4, 0.8, 0.9]
6363
walk = MarkovWalk(step_right_probs)
64-
```
65-
66-
- `walk.ever_reach_probs[start_state][end_state]` is the probability, that after
67-
infinite wandering started at `start_state` we will ever reach the point `end_state`
68-
69-
- `walk.right_edge_probs[state]` is the probability for a starting `state`, that after infinite wandering we will leave
70-
the table on the right, and not on the left
7164

72-
By states we mean `int` indexes in `step_right_probs`.
73-
74-
```python3
7565
# the motion begins at state 2.
7666
# How can we calculate the probability that we will get to state R before we get to state L?
7767
print(walk.right_edge_probs[2])
@@ -81,6 +71,15 @@ print(walk.right_edge_probs[2])
8171
print(walk.ever_reach_probs[1][3])
8272

8373
```
74+
75+
- `walk.ever_reach_probs[start_state][end_state]` is the probability, that after
76+
infinite wandering started at `start_state` we will ever reach the point `end_state`
77+
78+
- `walk.right_edge_probs[state]` is the probability for a starting `state`, that after infinite wandering we will leave
79+
the table on the right, and not on the left
80+
81+
By states we mean `int` indexes in `step_right_probs`.
82+
8483
-----
8584
<sup><a name="myfootnote1">*</a></sup> Perhaps you are worried about why the ticket collectors are going to kick the passenger out. The reason is that he is traveling on a lottery ticket.
8685

0 commit comments

Comments
 (0)