get_random_number_from_truncated_normal_dist: Get random vector from a truncated normal distribution

View source: R/mathfuns.R

get_random_number_from_truncated_normal_distR Documentation

Get random vector from a truncated normal distribution

Description

Get a vector of random numbers, drawn from a normal distribution, which is truncated (e.g. between 0 and 1). Has been used to generate the example dataset. The mean is given, the standard deviation is the mean / 3.

Usage

get_random_number_from_truncated_normal_dist(length_of_vector, mean, max, min)

Arguments

length_of_vector

number, length of returned vector

mean

number, the mean of the normal distribution.

max

number, the maximum which is assigned to all values which exceed the limits

min

number, the minimum which is assigned to all values which are below the given limit.

Value

a numeric vector of randomly generated numbers


allanecology/multiFunBetadivLuiGDM documentation built on Nov. 12, 2023, 6:16 a.m.