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

Model -- a type used to store a statistical model and its parameters

Description

In order to generate and study random algebraic objects formally, one should define a statistical model for such objects. A model captures the random generating process of the objects. It consists of a name, a set of parameters, and a generating function, stored under the corresponding keys in the hash table.

i1 : ER(3,2,0.2)

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

o1 : Model

Combined with the type Sample, the type Model defined here stores such information and allows for a streamlined way to sample random objects, store the data as a proper statistical sample, and study their algebraic properties under the probabilistic regime.

See also

Functions and methods returning an object of class Model:

Methods that use an object of class Model:

For the programmer

The object Model is a type, with ancestor classes HashTable < Thing.