Class MarkovWalk
java.lang.Object
org.tweetyproject.logics.petri.syntax.reachability_graph.MarkovWalk
A class to perform a stochastic walk on a reachability graph based on a probability function on that graph
- Author:
- Benedikt Knopp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Initialize the walk by setting up an initial state that assigns equal probabilities to each of the graph's initial markingsvoid
Walk the network until a stationary distribution is reachedvoid
setCurrentState(Matrix currentState)
-
Constructor Details
-
MarkovWalk
Create a new instance- Parameters:
graph
- the graph to walk
-
-
Method Details
-
initializeWalk
public void initializeWalk()Initialize the walk by setting up an initial state that assigns equal probabilities to each of the graph's initial markings -
performWalk
public void performWalk()Walk the network until a stationary distribution is reached -
getCurrentState
- Returns:
- the currentState
-
setCurrentState
- Parameters:
currentState
- the currentState to set
-