Macaulay2 » Documentation
Packages » GameTheory :: toMarkovRing
next | previous | forward | backward | up | index | toc

toMarkovRing -- ring of joint probability distributions created with the markovRing function from the GraphicalModels package

Description

Given a ring created with the probabilityRing function, this function creates the canonically isomorphic ring defined by the markovRing function from the GraphicalModels package. The variable name of the output ring is set to be different from the variable name of the input ring: the default variable name of the output ring is "p", and if the variable name of the input ring is "p" then the variable name of the output ring becomes "q".

i1 : R = probabilityRing({2,3,4}, CoefficientRing => ZZ/32003, ProbabilityVariableName => "x")

o1 = R

o1 : PolynomialRing
i2 : markovR = toMarkovRing R;
i3 : numgens markovR

o3 = 24
i4 : R_0, R_11, R_23

o4 = (x         , x         , x         )
       {0, 0, 0}   {0, 2, 3}   {1, 2, 3}

o4 : Sequence

See also

Ways to use toMarkovRing:

  • toMarkovRing(Ring)

For the programmer

The object toMarkovRing is a method function.


The source of this document is in GameTheory.m2:1779:0.