Stationary Distribution TutorialΒΆ

This tutorial will show how to calculate the stationary distribution of an \eM.

First import the machine library:

from cmpy.machines import library

Then pick an \eM and compute its stationary distribution:

m = library(0, 4)[237]
m.stationary_distribution()

By default the distribution components are returned as logs of the actual values. If you don’t want to use logs then do this:

m.stationary_distribution(logs=False)