Skip to contents

Sample generic object.

Usage

sample(object, n, ...)

# S4 method for class 'constant_distribution,integer'
sample(object, n)

# S4 method for class 'fixed_distribution,integer'
sample(object, n)

# S4 method for class 'function_distribution,integer'
sample(object, n)

# S4 method for class 'bootstrap_distribution,integer'
sample(object, n)

# S4 method for class 'bolus,integer'
sample(object, n, ...)

# S4 method for class 'infusion,integer'
sample(object, n, ...)

# S4 method for class 'observations,integer'
sample(object, n, ...)

# S4 method for class 'covariate,integer'
sample(object, n)

# S4 method for class 'bootstrap,integer'
sample(object, n)

# S4 method for class 'campsis_model,integer'
sample(object, n)

Arguments

object

generic object

n

number of samples required

...

extra arguments

Value

sampling result