diazrenata / theory-course Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
From AJR, JI:
RoLE implements neutral if competition/environmental filtering are either very close to 0 or very close to 1. In these cases everyone regardless of trait is either experiencing very strong or very little death-pressure, and so it's effectively equal across the community.
There are potentially some edge cases where one species finds the narrow optimum and wins extravagantly. This leads to the "fudge factor" delta, which is a value added to everyone's competition kernel effectively blunting it. delta may be a way to tune what %neutral/what %competition/nichey a simulation is.
For "true" neutral, a brute force option may be to wrap the entire death probabilities situation in an if
statement sidestepping all kernel calculations and assigning everyone equal death probability (not verbatim but see https://github.com/role-model/roleR/blob/main/src/iterModelCpp.cpp ca. lines 46, 93, and specifically 98):
if(comp_sigma == 0 && env_sigma == 0) {
# here mixing R and C code, this line taken from iterModelCpp.cpp at 98
# change this
# NumericVector death_probs = env_filter_probs + comp_probs;
# to
death_probs = 1 / n_indiv # rep'd to the appropriate length
}
(not a complete fix because if the sigmas == 0 it would break some calculations earlier in the loop, but the gist)
Also in RoLE one individual dies per time step, after Hubbell. So there's no selection of death rates, just differential death probabilities. This is just a note for RMD who forgot this.
walk through document
demo/scripted branch - PR - merge workflow?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.