BernoulliVariable

constructor(parent: ModelElement, successProbability: Double, success: T, failure: T, streamNumber: Int = 0, name: String? = null)

A BernoulliVariable models two choices (success, failure) governed by a Bernoulli random variable

Parameters

parent

the parent model element

successProbability

the success probability mapped to success.

success

the thing associated with success. Must have the same type as failure.

failure

the thing associated with failure. Must have the same type as success.

streamNumber

the desired stream number from the model's provider

name

the name of the model element


constructor(parent: ModelElement, bernoulliRV: BernoulliRV, success: T, failure: T, name: String? = null)

Parameters

parent

the parent model element

bernoulliRV

the Bernoulli random variable with success probability mapped to success.

success

the thing associated with success. Must have the same type as failure.

failure

the thing associated with failure. Must have the same type as success.

name

the name of the model element