doSample-methods: Sampling from the distribution.

Description Usage Arguments Examples

Description

Sampling from the distribution.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
doSample(object, n, ...)

## S4 method for signature 'Normal,numeric'
doSample(object, n)

## S4 method for signature 'Beta,numeric'
doSample(object, n)

## S4 method for signature 'Exponential,numeric'
doSample(object, n)

## S4 method for signature 'Gamma,numeric'
doSample(object, n)

## S4 method for signature 'Lognormal,numeric'
doSample(object, n)

## S4 method for signature 'Pareto,numeric'
doSample(object, n)

## S4 method for signature 'Poisson,numeric'
doSample(object, n)

## S4 method for signature 'NegativeBinomial,numeric'
doSample(object, n)

## S4 method for signature 'Geometric,numeric'
doSample(object, n)

## S4 method for signature 'Uniform,numeric'
doSample(object, n)

## S4 method for signature 'Weibull,numeric'
doSample(object, n)

## S4 method for signature 'Empirical,numeric'
doSample(object, n)

Arguments

object

A Distribution Object

n

Number of samples

...

Additional function arguments

Examples

1
2
xPareto <- new("Pareto",p1=20,p2=3)
doSample(xPareto,10000)

cascsim documentation built on Jan. 13, 2020, 5:07 p.m.