Random numbers
[Runtime module API]


Detailed Description

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


Defines

#define gl_pseudorandomvalue   (*callback->random.pseudo)
 Obtain an arbitrary random value using RANDOMTYPE.
#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_pseudorandomvalue   (*callback->random.pseudo)

Obtain an arbitrary random value using RANDOMTYPE.

See also:
RANDOMTYPE, pseudorandom_value()

Definition at line 714 of file gridlabd.h.

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

Generate a Bernoulli distributed random number.

See also:
random_bernoulli()

Definition at line 734 of file gridlabd.h.

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

Generate an examponentially distributed random number.

See also:
random_exponential()

Definition at line 749 of file gridlabd.h.

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

Generate a log normal distributed random number.

See also:
random_lognormal()

Definition at line 729 of file gridlabd.h.

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

Generate a normal distributed random number.

See also:
random_normal()

Definition at line 724 of file gridlabd.h.

Referenced by import_cdf(), house::init(), battery::init(), and fuse::sync().

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

Generate a Pareto distributed random number.

See also:
random_pareto()

Definition at line 739 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 744 of file gridlabd.h.

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

Generate a uniformly distributed random number.

See also:
random_uniform()

Definition at line 719 of file gridlabd.h.

Referenced by waterheater::init(), house_e::init(), house::init(), metrics::start_event(), dryer::update_state(), and clotheswasher::update_state().

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

Determine the distribution type to be used from its name.

See also:
RANDOMTYPE, random_type()

Definition at line 704 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 709 of file gridlabd.h.


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