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

setEmpirical<-R Documentation

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.

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

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


casact/cascsim documentation built on Nov. 12, 2022, 11:53 p.m.