Random numbers
[Runtime module API]


Detailed Description

The random number library provides a variety of random number generations for different distributions.


Defines

#define gl_random_bernoulli   (*callback->random.bernoulli)
 Generate a Bernoulli distributed random number.
#define gl_random_exponential   (*callback->random.exponential)
 Generate an examponentially distributed random number.
#define gl_random_lognormal   (*callback->random.lognormal)
 Generate a log normal distributed random number.
#define gl_random_normal   (*callback->random.normal)
 Generate a normal distributed random number.
#define gl_random_pareto   (*callback->random.pareto)
 Generate a Pareto distributed random number.
#define gl_random_sampled   (*callback->random.sampled)
 Generate a random number drawn uniformly from a sample.
#define gl_random_uniform   (*callback->random.uniform)
 Generate a uniformly distributed random number.
#define gl_randomtype   (*callback->random.type)
 Determine the distribution type to be used from its name.
#define gl_randomvalue   (*callback->random.value)
 Obtain an arbitrary random value using RANDOMTYPE.


Define Documentation

#define gl_random_bernoulli   (*callback->random.bernoulli)

Generate a Bernoulli distributed random number.

See also:
random_bernoulli()

Definition at line 625 of file gridlabd.h.

Referenced by waterheater::create(), and house::sync().

#define gl_random_exponential   (*callback->random.exponential)

Generate an examponentially distributed random number.

See also:
random_exponential()

Definition at line 640 of file gridlabd.h.

Referenced by house::sync(), and relay::sync().

#define gl_random_lognormal   (*callback->random.lognormal)

Generate a log normal distributed random number.

See also:
random_lognormal()

Definition at line 620 of file gridlabd.h.

#define gl_random_normal   (*callback->random.normal)

Generate a normal distributed random number.

See also:
random_normal()

Definition at line 615 of file gridlabd.h.

Referenced by waterheater::create(), lights::create(), import_cdf(), and waterheater::init().

#define gl_random_pareto   (*callback->random.pareto)

Generate a Pareto distributed random number.

See also:
random_pareto()

Definition at line 630 of file gridlabd.h.

#define gl_random_sampled   (*callback->random.sampled)

Generate a random number drawn uniformly from a sample.

See also:
random_sampled()

Definition at line 635 of file gridlabd.h.

#define gl_random_uniform   (*callback->random.uniform)

Generate a uniformly distributed random number.

See also:
random_uniform()

Definition at line 610 of file gridlabd.h.

Referenced by washer::create(), range::create(), plugload::create(), microwave::create(), lights::create(), dishwasher::create(), clotheswasher::create(), waterheater::init(), house::init(), and refrigerator::refrigerator().

#define gl_randomtype   (*callback->random.type)

Determine the distribution type to be used from its name.

See also:
RANDOMTYPE, random_type()

Definition at line 600 of file gridlabd.h.

Referenced by comm::init().

#define gl_randomvalue   (*callback->random.value)

Obtain an arbitrary random value using RANDOMTYPE.

See also:
RANDOMTYPE, random_value()

Definition at line 605 of file gridlabd.h.


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy