-
元胞自动机源码
1、可获得在不同车流密度下的单车道仿真结果,需要等待6-7分钟,如果想快速看结果则需要设置程序中的dt为0(程序中现设置为0.01).
2、可获得在不同车流密度下的双车道仿真结果,需要等待6-7分钟,如果想快速看结果则需要设置程序中的dt为0(程序中现设置为0.01).
3、可以进行在车流密度不变时的单车道或双车道仿真,但需要输入一些参数,可以按如下方式调用:[ v d p ] = multi_driveway( 100,2,1,0.01,1000 );,需要运行半分钟左右.
4、可以进行在车流密度不变时的单车道或双车道仿真,且不需要输入参数,直接运行即可(实际上就是调用了3的程序,只是参数已经设置好了)
常用参数说明(程序中也有部分说明):
nc:车道数目(1或2)
nl:车道长度
v:平均速度
d:换道次数(1000次)
p:车流密度
dt:仿真步长时间,决定了交通流图中元胞的状态变化速度
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-01-25 23:57:32下载
- 积分:1
-
STM32用MAX3185采集温度值,经过ADS1115转换成数字量,超详细,验证通过的呦
STM32用MAX3185采集温度值,经过ADS1115转换成数字量,实时采集,通过串口传入串口屏,十进制显示,超详细,验证通过的呦
- 2022-07-17 10:06:09下载
- 积分:1
-
WiMAX网络部署
WiMAX Network Deployment
- 2022-04-09 22:51:40下载
- 积分:1
-
书上的例子,是本人在学习过程中的作品,上传给大家学习学习...
书上的例子,是本人在学习过程中的作品,上传给大家学习学习-book on the case, I was in the learning process works, we upload to learn from
- 2022-09-07 07:55:02下载
- 积分:1
-
High
高质量C++编程,林锐博士,关于C++编程中常被忽略的重要内容。-High-quality C++ Programming, Dr. Lin Rui, the C++ Programming in an important aspect often neglected.
- 2022-06-17 00:29:09下载
- 积分:1
-
windows核心编程源程序
windows核心编程源程序-windows core programming source
- 2022-01-25 14:21:23下载
- 积分:1
-
stm32的ad程序,不错的。
stm32的ad程序,不错的。-dsp serial debugger, good.
- 2022-03-21 05:26:57下载
- 积分:1
-
一组转换函数用于十六进制字符串二进制字符串八进制字符串到十进制整数相互转换...
一组转换函数用于十六进制字符串二进制字符串八进制字符串到十进制整数相互转换-Transfer function for a group of hexadecimal string string octal binary string to decimal integer conversion
- 2022-01-26 01:35:28下载
- 积分:1
-
这也是个跟踪鼠标的小程序,用VB编写 的,你试试吧,应该可以通过吧...
这也是个跟踪鼠标的小程序,用VB编写 的,你试试吧,应该可以通过吧-which is also a small mouse tracking procedures, prepared by the VB, you try it, it should be adopted
- 2023-05-16 19:30:03下载
- 积分:1
-
该组件可用编写字符串和数字运算处理脚本,供运行时调用获取执行结果
1、组件调用的方式可以参考 main.cpp
2、脚本的编写可以参考 debug/my...
该组件可用编写字符串和数字运算处理脚本,供运行时调用获取执行结果
1、组件调用的方式可以参考 main.cpp
2、脚本的编写可以参考 debug/my.cfg
3、可调用系统函数有
atof: 将字符串转换为浮点数
ceil:
floor:
abs:
index:
strcmp:
substr:
strlen:
trim:
strstr:
split:
replace:字符串替换函数
printf:
这些函数基本与同名c函数相同
4、可预先编写一组脚本文件,编译时为每个文件指定ID,供调用时选择-The component can be used to prepare the string and digital processing script for run-time access to results of the implementation of one call, components can call the reference main.cpp2, the preparation of the script can refer to debug/my.cfg3, may call the system function has atof : convert a string to float ceil: floor: abs: index: strcmp: substr: strlen: trim: strstr: split: replace: string replace function printf: These functions are basically the same with the same name c function 4, can be prepared in advance by one Group script file, compile-time specified for each document ID, call for selection
- 2022-07-28 13:47:17下载
- 积分:1