Generate: Random numbers generator

View source: R/Distributions_lib.R

GenerateR Documentation

Random numbers generator

Description

Generate random realizations from a distribution

Usage

Generate(dist, par, n = 1)

Arguments

dist

character, distribution name

par

numeric vector, parameter vector

n

integer, number of values to generate

Value

The generated values as a numeric vector.

Examples

Generate('Normal',c(0,1),10)
Generate('GEV',c(100,25,-0.2),10)
Generate('GEV',c(100,25,0.2),10)
Generate('Poisson',0.75,10)

HydroPortailStats documentation built on Sept. 12, 2024, 9:36 a.m.