API Reference
StochX exposes stochastic-process objects as explicit Python classes. The reference follows a PyDTMC-style layout: each class page describes the mathematical object, constructor, public properties, public methods, examples, and related course material.
Markov chains
MarkovChain— finite homogeneous discrete-time Markov chains.
Poisson processes
PoissonProcess— homogeneous Poisson process.NonHomogeneousPoissonProcess— intensity-driven Poisson process.
Continuous-time Markov chains
ContinuousTimeMarkovChain— finite homogeneous CTMCs.CTMCPath— simulated CTMC trajectories.BirthDeathProcess— birth-death specialization of a CTMC.
Conditional expectation
Martingales
Standalone analysis
empirical_state_frequencies— generic trajectory-frequency analysis.
Exceptions
Exception hierarchy— semantic validation and numerical exceptions.
API conventions
Properties describe intrinsic information already attached to an object. Methods perform computations or operations that require arguments. Public state labels are preserved at the API boundary while numerical implementations may use integer indices internally.
The API reference is separate from the mathematical Course material. For definitions and proofs, use the corresponding course chapter first.