Result of Spatex.Dynamics.markov/2 (giddy.markov.Markov), also returned by
Spatex.Dynamics.full_rank_markov/2 and geo_rank_markov/2.
Matrices are lists of rows. Mean first passage times and sojourn times can be :infinity.
classes- the class labels in row/column order,ktheir number.transitions- counts of moves between consecutive periods;p- row-normalized probabilities (an all-zero row stays zero unlessfill_empty_classes: truemade it absorbing).steady_state- the stationary distribution (a list ofkfloats) of an irreducible chain; otherwise one distribution per recurrent class (a list of such lists).mfpt- mean first passage times (mfpt[i][j]: expected steps fromito first reachj; the diagonal is the recurrence time);sojourn_time-1 / (1 - p_ii). Like giddy's lazily computed properties, these three always treat empty rows as absorbing.communication_classes,recurrent_classes,transient_classes- state indices (zero-based),absorbing_states- states withp_ii == 1.ranks- then x trank states offull_rank_markov/2/geo_rank_markov/2;nilformarkov/2.
Summary
Types
@type matrix() :: [[float()]]
@type t() :: %Spatex.Dynamics.Markov{ absorbing_states: [non_neg_integer()], classes: [term()], communication_classes: [[non_neg_integer()]], fill_empty_classes: boolean(), k: pos_integer(), mfpt: [[value()]], p: matrix(), ranks: [[pos_integer()]] | nil, recurrent_classes: [[non_neg_integer()]], sojourn_time: [value()], steady_state: [float()] | [[float()]], transient_classes: [[non_neg_integer()]], transitions: matrix() }
@type value() :: float() | :infinity