vectorToUniformDist: Samples a vector from a uniform distribution, the sum adds to...

Description Usage Arguments Value Examples

Description

Samples a vector from a uniform distribution, the sum adds to the mean

Usage

1

Arguments

N

the number of samples

M

the mean of the samples

sd

the standard deviation of the samples

Value

a vector of N numbers adding to M (can be negative)

Examples

1
vectorToUniformDist(6,10, sd = 1) / 10

alesaccoia/alexr documentation built on Dec. 19, 2021, 12:26 a.m.