setEmpirical-methods: Set the list of values and corresponding probabilities...

Description Usage Arguments

Description

Set the list of values and corresponding probabilities (Pr(X<value) for continuous variable and Pr(X==value) for discrete variable). It is only used for empirical distribution.

Usage

1
2
3
4
setEmpirical(this, ...) <- value

## S4 replacement method for signature 'Distribution,matrix'
setEmpirical(this) <- value

Arguments

this

Distribution Object

...

Additional function arguments.

value

Two-column matrix with values and probabilities dist <- new("Normal") setEmpirical(dist) <- matrix(c(0.01,0.25,0.5,0.75,0.99, 11,12,13,14,15), nrow = 5, ncol = 2) dist


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