gen.unif {hedgehog}R Documentation

Generate a float between the from and to the values specified.

Description

Shrinks towards the from value, or if shrink.median is on, the middle.

Usage

gen.unif(from, to, shrink.median = T)

Arguments

from

same as from in runif

to

same as to in runif

shrink.median

whether to shrink to the middle of the distribution instead of the low end.

Examples

gen.unif(0, 1) # a float between 0 and 1

[Package hedgehog version 0.1 Index]