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

Update calculation of maximum dispersal distance in gridded mode #507

Closed
kpalmqui opened this issue Mar 18, 2021 · 2 comments
Closed

Update calculation of maximum dispersal distance in gridded mode #507

kpalmqui opened this issue Mar 18, 2021 · 2 comments
Assignees

Comments

@kpalmqui
Copy link
Member

Current implementation:

float _maxDispersalDistance(float height) {
     float constant = 0.921;
     return RandUniFloatRange(0, 2 * constant * height, &dispersal_rng);
}

Proposed implementation:

float _maxDispersalDistance(float height) {
    float constant = 8.337;
    return RandUniFloatRange(0, 2 * constant * (height/100), &dispersal_rng);
}
@kpalmqui kpalmqui added this to the Seed Dispersal milestone Mar 18, 2021
@kpalmqui kpalmqui self-assigned this Mar 18, 2021
kpalmqui added a commit that referenced this issue Mar 18, 2021
… of actual height of the largest individual, issue #507

- fixed error on line 21
- function is now based on maxHeight instead of height (which is the height of the largest established individual)
- updated equation to ensure order of operations
@kpalmqui
Copy link
Member Author

Ignore above commit/comment - that was tagged to the wrong issue.

kpalmqui added a commit that referenced this issue Mar 18, 2021
@kpalmqui
Copy link
Member Author

resolved by 860b608

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

No branches or pull requests

1 participant