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

# Histogram -- a summary statistic for a list of objects

## Description

The symbol Histogram is used as a key in the hash table returned by the function statistics. It one of the summary statistics for a given data sample.

    i1 : s=sample(ER(6,3,0.2),100);

    i2 : myStats = statistics(s, dim@@ideal);

    i3 : myStats.Histogram

    o3 = Tally{1 => 20}
               2 => 61
               3 => 17
               4 => 2

    o3 : Tally

## See also

- statistics -- generate statistics for a sample
- ShowTally -- optional input to choose if the tally is to be returned

## For the programmer

The object Histogram is a symbol.

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