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

Generate -- model construct function

Description

An object of type Model consists of a model name, a set of parameters, and a generating function, stored under the corresponding keys in the hash table. The key Generate points to the function that is used to generate random elements according to the given model.

i1 : myModel = ER(2,2,0.5)

o1 = Model{Generate => FunctionClosure[/usr/local/share/Macaulay2/RandomMonomialIdeals.m2:130:20-130:48]}
           Name => Erdos-Renyi
           Parameters => (2, 2, .5)

o1 : Model

See also

For the programmer

The object Generate is a symbol.