Giter VIP home page Giter VIP logo

cellular-automaton-for-traffic-simulation's Introduction

cellular-automaton-for-traffic-simulation

对STNS模型的实现,不仅实现了NS模型中的内容,还实现了对车辆变道的处理。

程序的主函数是trafficModel_main.m,运行之后会实时地绘制出汽车的行驶情况。

accelerate.m、slow.m、randomslow.m和updatepos.m是STNS模型继承了NS模型中的四个更新车辆运动的规则,分别为加速、减速、随机慢化和位置更新。

changelane.m是STNS模型中车辆变道的规则。

createMap2.m是创建一张地图,基本结构为目字形。

findfrontcar.m是找到某一辆的前方最近的车辆;findcars.m是找到地图中的所有车辆;

switchpos.m是在地图上更新车辆的位置信息;

randcar.m是随机在地图的某些位置上生成车辆,只会在地图初始化的时候用到。

carflow.m是计算每一条路和交叉路口的车流量。

cellular-automaton-for-traffic-simulation's People

Contributors

sychen123 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.