mingenStats removes zero ideals from the list of ideals, then calculates the average and the standard deviation for the number of minimal generators and degree complexity of the list of nonzero ideals.
i1 : n=4; D=3; p={0.0,1.0,0.0}; N=3; |
i5 : B=randomMonomialIdeals(n,D,p,N); |
i6 : mingenStats(B) o6 = (10, 0, 2, 0) o6 : Sequence |
If the list given is a list of all zero ideals, mingenStats returns -infinity for the mean number of minimal generators and mean degree complexity.
i7 : B=randomMonomialIdeals(3,3,0.0,1); |
i8 : mingenStats(B) o8 = (-infinity, 0, -infinity, 0) o8 : Sequence |
Note that this function can be called on a list of Ideal objects instead.
mingenStats removes zero ideals from the list of ideals before computing the two values.