Skip to content

Commit

Permalink
Use a different random seed for solverMLE example
Browse files Browse the repository at this point in the history
Otherwise, the build fails with a division by zero error.
  • Loading branch information
d-torrance committed Sep 19, 2024
1 parent e5d1b13 commit dd81d5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions M2/Macaulay2/packages/GraphicalModelsMLE.m2
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,7 @@ doc ///
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).
Example
setRandomSeed 1
G = mixedGraph(digraph {{1,2},{1,3},{2,3},{3,4}},bigraph {{3,4}});
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}};
solverMLE(G,U,RealPrecision=>10)
Expand Down

0 comments on commit dd81d5c

Please sign in to comment.