Tools for Discrete Phase-Type Distributions (:mod:`butools.dph`) ================================================================ .. module:: butools.dph To load this package, either start the :func:`BuToolsInit()` script, or execute .. list-table:: :widths: 50 50 * - :code:`addpath('butools/dph')` - in Matlab, * - :code:`<` - Returns the moments of a matrix geometric distribution. * - :py:func:`MomentsFromDPH ` - Returns the moments of a discrete phase-type distribution. * - :py:func:`CdfFromMG ` - Returns the cummulative distribution function of a matrix-geometric distribution. * - :py:func:`CdfFromDPH ` - Returns the cummulative distribution function of a discrete phase-type distribution. * - :py:func:`PmfFromMG ` - Returns the probability mass function of a matrix-geometric distribution. * - :py:func:`PmfFromDPH ` - Returns the probability mass function of a discrete phase-type distribution. * - :py:func:`RandomDPH ` - Returns a random discrete phase-type distribution with a given mean value. * - :py:func:`CheckDPHRepresentation ` - Checks if the given vector and matrix define a valid discrete phase-type representation. * - :py:func:`CheckMGRepresentation ` - Checks if the given vector and matrix define a valid matrix-geometric representation. * - :py:func:`SamplesFromDPH ` - Generates random samples from a discrete phase-type distribution. * - :py:func:`ImageFromDPH ` - Depicts the given discrete phase-type distribution, and either displays it or saves it to file. Inverse characterization tools ------------------------------ .. list-table:: :widths: 25 150 * - :py:func:`DPH2From3Moments ` - Returns an order-2 discrete phase-type distribution which has the same 3 moments as given. * - :py:func:`DPH3From5Moments ` - Returns an order-3 discrete phase-type distribution which has the same 5 moments as given. * - :py:func:`MGFromMoments ` - Creates a matrix-geometric distribution that has the same moments as given. Representation transformation methods ------------------------------------- .. list-table:: :widths: 25 150 * - :py:func:`AcyclicDPHFromMG ` - Transforms a matrix-geometric representation to an acyclic DPH representation of the same size, if possible. * - :py:func:`CanonicalFromDPH2 ` - Returns the canonical form of an order-2 discrete phase-type distribution. * - :py:func:`CanonicalFromDPH3 ` - Returns the canonical form of an order-3 discrete phase-type distribution. * - :py:func:`DPHFromMG ` - Obtains a Markovian representation of a matrix geometric distribution of the same size, if possible. .. toctree:: :hidden: MomentsFromMG MomentsFromDPH CdfFromMG CdfFromDPH PmfFromMG PmfFromDPH RandomDPH CheckDPHRepresentation CheckMGRepresentation SamplesFromDPH ImageFromDPH DPH2From3Moments DPH3From5Moments MGFromMoments AcyclicDPHFromMG CanonicalFromDPH2 CanonicalFromDPH3 DPHFromMG