F_const: Constant (degenerate) distribution and related equilibrium...

View source: R/equilibrium_distributions.R

F_constR Documentation

Constant (degenerate) distribution and related equilibrium distribution

Description

Generation from a degenerate distribution and random number generation from the related equilibrium distribution, for use with r_behavior_stream.

Usage

F_const()

Value

Object of class eq_dist with components r_gen and r_eq.

The function r_gen(n, mean) simply returns a vector of length n with all values equal to mean.

The function r_eq(n, mean) generates random deviates from a uniform distribution on the interval (0, mean).

Examples

hist(F_const()$r_gen(1000, 2))
hist(F_const()$r_eq(1000, 2))


ARPobservation documentation built on Aug. 25, 2023, 5:19 p.m.