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 TypeMethodDescriptionReturn the controlVectorReturn the currentStateReturn the mean stateReturn the normalized control vectorvoid
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 figured out This also yields control vectorsvoid
Walk the network until a stationary distribution is figured out This neglects control vectors
-
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 figured out This neglects control vectors -
performShortCircuitWalk
public void performShortCircuitWalk()Walk the network until a stationary distribution is figured out This also yields control vectors -
getCurrentState
-
getMeanState
-
getControlVector
-
getNormalizedControlVector
Return the normalized control vector- Returns:
- the normalized control vector
-