
# steadyTests.py
# Andrew Davison, June 2025, ad@coe.psu.ac.th
# inputs: maze  OzWeather 


from Mat import *
from MarkovLib import *


fnm = input("fnm: ")
labels, P = readMarkov(fnm)
print("P:")
matLabels(P, labels)
graph(fnm, labels, P)

Z, pi, r, M = steady(P)
print("Fundamental matrix Z:")
matLabels(Z, labels)

print("Stationary Distribution pi:")
vecLabels(pi, labels, fmt="{:> .4f}")

print("Mean Recurrence Times r:")
vecLabels(r, labels)

print("Mean First Passage Times M:")
# M.print()
matLabels(M, labels, labels)
