Macaulay2 » Documentation
Packages » RandomMonomialIdeals :: ShowTally
next | previous | forward | backward | up | index | toc

# ShowTally -- optional input to choose if the tally is to be returned

## Description

If ShowTally => false (the default value), then only the 2 basic statistics - mean and standard deviation - of the function will be returned. If ShowTally => true, then both the statistics and the tally will be returned.

    i1 : R=ZZ/101[a,b,c];

    i2 :       ideals = {monomialIdeal"a3,b,c2", monomialIdeal"a3,b,ac"}

                          3      2                   3
    o2 = {monomialIdeal (a , b, c ), monomialIdeal (a , b, a*c)}

    o2 : List

    i3 :       dimStats(ideals)

    o3 = (.5, .5)

    o3 : Sequence

    i4 : mingenStats(ideals)

    o4 = (3, 0, 3, 0)

    o4 : Sequence

In order to view the tally, ShowTally must be set to true (ShowTally => true) when the function is called:

    i5 : degStats(ideals)

    o5 = (3.5, 2.5)

    o5 : Sequence

    i6 : pdimStats(ideals)

    o6 = (3, 0)

    o6 : Sequence

    i7 : dimStats(ideals,ShowTally=>true)

    o7 = (.5, .5, Tally{0 => 1})
                        1 => 1

    o7 : Sequence

    i8 : mingenStats(ideals,ShowTally=>true)

    o8 = (3, 0, Tally{3 => 2}, 3, 0, Tally{3 => 2})

    o8 : Sequence

    i9 : degStats(ideals,ShowTally=>true)

    o9 = (3.5, 2.5, Tally{1 => 1})
                          6 => 1

    o9 : Sequence

## See also

- dimStats -- statistics on the Krull dimension of a list of objects
- mingenStats -- statistics on the minimal generators of a list of ideals: number and degree complexity
- degStats -- statistics on the degrees of a list of objects
- regStats -- statistics on the regularities of a list of objects
- pdimStats -- statistics on projective dimension of a list of objects

## Functions with optional argument named ShowTally:

- `degStats(...,ShowTally=>...)`
- `dimStats(...,ShowTally=>...)`
- `mingenStats(...,ShowTally=>...)`
- `pdimStats(...,ShowTally=>...)`
- `regStats(...,ShowTally=>...)`

## For the programmer

The object ShowTally is a symbol.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/RandomMonomialIdeals.m2:1431:0.