next | previous | forward | backward | up | top | index | toc | Macaulay2 website
GraphicalModelsMLE :: scoreEquations(...,RealPrecision=>...)

scoreEquations(...,RealPrecision=>...) -- number of decimals used to round input data in RR to data in QQ

Synopsis

Description

This optional input only applies when the sample data or the sample covariance matrix has real entries. By default, the precision is 53, the default precision for real numbers in M2.

i1 : G = mixedGraph(digraph {{1,2},{1,3},{2,3},{3,4}},bigraph {{3,4}});
i2 : R=gaussianRing(G);
i3 : U = matrix{{6.2849049, 10.292875, 1.038475, 1.1845757}, {3.1938475, 3.2573, 1.13847, 1}, {4/5, 3/2, 9/8, 3/10}, {10/7, 2/3,1, 8/3}};

                4          4
o3 : Matrix RR    <--- RR
              53         53
i4 : J=scoreEquations(R,U,RealPrecision=>3)

                                                                                                         
o4 = ideal (28100p    + 32485053p    - 8711, 12929994405554906743492000p    + 621444094317519300000p    -
                  4,4            3,4                                    3,3                         3,4  
     ----------------------------------------------------------------------------------------------------------------------------
                                                                                                                          
     36632474039925340565349, 1132250p    - 1020899, 1000p    - 4529, 3l    + 1000p    + 42, 12929994405554906743492l    -
                                      2,2                 1,1           3,4        3,4                               2,3  
     ----------------------------------------------------------------------------------------------------------------------------
                                                                                                              
     24028768962048900000p    - 78354380247020268871, 12929994405554906743492l    + 61381492595015100000p    +
                          3,4                                                 1,3                        3,4  
     ----------------------------------------------------------------------------------------------------------------------------
                                                      2
     205399025045045995289, 4529l    - 7811, 56200000p    + 194910318p    - 26133)
                                 1,2                  3,4             3,4

o4 : Ideal of QQ[l   ..l   , l   , l   , p   , p   , p   , p   , p   ]
                  1,2   1,3   2,3   3,4   1,1   2,2   3,3   4,4   3,4

Further information

See also

Functions with optional argument named RealPrecision :