runif_replace: Random numbers considering reference values

View source: R/000_common.R

runif_replaceR Documentation

Random numbers considering reference values

Description

Generate n random numbers following a uniform distribution between min and max. The values in ref can be chosen or not, according to original.

Usage

runif_replace(n, min, max, original, ref)

Arguments

n

an integer with the amount of random numbers to generate.

min

a double with the lower limit of the distribution.

max

a double with the upper limit of the distribution.

original

a boolean indicating if the values in ref can be chosen.

ref

a double vector with n reference values.

Value

A double vector with the numbers generated.


noisemodel documentation built on Oct. 17, 2022, 9:05 a.m.