Does spotpy's Dream not exactly Vrugt, J. A. (2016) proposed Dream? #285
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, @thouska
I have tried to fix the missing function of dream. This is my first pull request. I am not sure I am on the right way. My classmate thinks my work is unnecessary, because he is used to using spotpy dream to complete his experiments, so he thinks my work may trouble him, but I don't know how to write code that can take care of his idea. What do you think?
The main change is: using a random number of chain pairs to generate the jump of the dream, which in spotpy now is only one pair.
parameter delta is the biggest number of chain pairs to generate the jump,
parameter c is for creating lambda,
parameter nchain_pairs is number of chain pairs actually used for a jump,
To be consistent with the source code (random_par_set1[i]-random_par_set2[i]), I changed the sum of the difference to “sum first and then do the difference”
If there is any room for improvement, please advise, I am willing to continue to revise.
Best wishes,
Yantong Wu