遇见数据集

Supplement 1. The two C codes, metacommunity.c and localcommunity.c, mentioned in the paper used in the simulation of metacommunities and local communities.

收藏
Figshare2016-08-05 更新2026-04-29 收录
官方服务:

资源简介:

File List localcommunity.c -- C source code metacommunity.c -- C source code localcommunity.out -- compiled code metacommunity.out -- compiled code Description Program metacommunity.c simulates dominance diversity curves under equilibrium between speciation and extinction by drift, using Ewens's algorithm. (See top of the program file for more details.) Program localcommunity.c simulates community drift with immigration. (See top of the program file for more details.) Both programs interactively ask for the input parameters. The program localcommunity requires, in addition, data generated by the program metacommunity. The two programs have been tested in a variety of C compilers, therefore they should compile and run in most systems without problems. In Unix systems (including MAX OSX and Linux) the compile instruction is for metacommunity.c and localcommunity.c, respectively: cc metacommunity.c -lm cc localcommunity.c -lm or gcc metacommunity.c -lm gcc localcommunity.c -lm Both programs make use of the subroutine "ran2" of Press et al 1992. Numerical Recipes in C. This can be found in both listings of the programs. We strongly discourage any attempts to change the function ran2, unless the reader is familiar with the procedures to generate pseudo-random numbers. Press, W. H., S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery. 1992. Numerical Recipes in C, Second Edition. Cambridge University Press, Cambridge, UK.

文件清单 localcommunity.c——C语言源代码 metacommunity.c——C语言源代码 localcommunity.out——编译后可执行文件 metacommunity.out——编译后可执行文件 程序说明 程序metacommunity.c采用Ewens算法(Ewens's algorithm),模拟漂变作用下物种形成与灭绝达到平衡时的优势种多样性曲线,详细说明参见程序文件头部。 程序localcommunity.c模拟带迁入过程的群落漂变,详细说明参见程序文件头部。 两款程序均以交互方式提示用户输入参数。此外,localcommunity程序还需依赖metacommunity程序生成的数据作为输入。 两款程序已在多种C语言编译器中完成兼容性测试,可在绝大多数操作系统中顺利编译并运行。 在Unix系统(含MAX OSX与Linux)中,针对metacommunity.c与localcommunity.c的编译命令分别为: cc metacommunity.c -lm cc localcommunity.c -lm 或使用GCC编译器: gcc metacommunity.c -lm gcc localcommunity.c -lm 两款程序均调用了Press等人1992年出版的《C语言数值计算指南(Numerical Recipes in C)》中的ran2子程序,该子程序的代码可在两款程序的源代码文件中找到。我们强烈建议不要修改ran2函数,除非您已熟练掌握伪随机数生成的相关原理与实现流程。 引用文献:Press, W. H.、S. A. Teukolsky、W. T. Vetterling与B. P. Flannery,1992年。《C语言数值计算指南(第二版)》,英国剑桥:剑桥大学出版社。

创建时间:
2016-08-05
二维码
社区交流群
二维码
科研交流群
商业服务