Random Number generation
-
- Junior Member
- Posts: 2
- Joined: Thu Mar 29, 2018 10:38 am
- Vensim version: DSS
Random Number generation
I am trying to generate random number by exponential distribution. I need the parameters minimum, maximum, seed, shift, stretch. How can I calculate shift and stretch value from my data??? Please help me
Re: Random Number generation
The scale parameter determines the mean (assuming shift=0 and there is no truncation), and therefore is the inverse of the lambda parameter typically described for the distribution. The standard deviation equals the mean (variance = mean^2).
So, you could use shift=0 and scale=mean of your data.
See the sample model in the help system for implementation.
So, you could use shift=0 and scale=mean of your data.
See the sample model in the help system for implementation.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/