Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test randomization functions #32

Open
JamesPHoughton opened this issue Feb 11, 2016 · 1 comment
Open

Test randomization functions #32

JamesPHoughton opened this issue Feb 11, 2016 · 1 comment

Comments

@JamesPHoughton
Copy link
Contributor

Test the following Vensim functions:

  • EXPRND
  • LOGNORMAL
  • RANDOM NORMAL
  • POISSON
  • RANDOM UNIFORM

We may have to be clever about how we do it. Maybe taking sums of large numers of samples with different parameters?

@JamesPHoughton
Copy link
Contributor Author

The caching issue is complex here, as it doesn't depend on the stock. The value of the call to rand should probably not be cached, as that would introduce artificial covariance. But the functions that contain the call should absolutely be cached, so that they have the same value for any of their downstreams...

Should write a variable that uses the rand, and is called in two different elements, and then make sure they are the same, which would not be the case if the full tree was called each time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant