functionContinuous
Empirical Continuous
Information
Continuous
Empirical Continuous probability distribution function.
Syntax
Continuous(g,p[:],v[:])
Description
This function generates random variates following the Empirical Continuous distribution function described by the parameters p and v.
Parameter p represents the list of cummulative probabilities related with the values in v.
Length of p and v must be the same.
Examples
Continuous(g,{0.2,0.4,0.6,0.8,1},{1,2,3,4,5});
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| CMRG.RngStream | g | ||
| Real[:] | p | ||
| Real[:] | v |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | value | ||
| CMRG.RngStream | gout |