ddwell function

State dwell-time distributions of periodically inhomogeneous Markov chains