Giter Club home page Giter Club logo

monte-carlo's Introduction

Monte-Carlo

蒙特卡洛仿真开源代码

前言(Introduction)

写通信方面的论文时,其中会涉及到公式仿真,本代码是我在做毕业设计过程中用到的蒙特卡洛仿真代码。

由于代码中只涉及到公式的理论部分和公式最终表达式,不涉及到具体的推导细节,所以可以公开。

论文模型简介(System Model Brief Intro)

论文涉及的是物理层安全课题,将通信系统模拟为一个源节点、一个目的节点、一个窃听节点,假设由于距离的遥远,源节点不能直接跟目的节点进行通信,必须借助一个中间节点,类似于基站通信。这个课题模拟一个多中间节点的模型,将其中一个作为最优中继,其他的作为友好干扰辅助节点。

代码模块说明(Code Module)

fun1.m

函数体

方案:最优中继选择,其他的中间节点作为友好干扰辅助

实际值和理论值仿真

仿真内容:窃听概率(Intercept Probability)

fun2.m

函数体

方案:最优中继选择,其他的中间节点里面选择一个作为友好干扰辅助

实际值和理论值仿真

仿真内容:窃听概率(Intercept Probability)

fun3.m

函数体

方案:两种方案公式相同

实际值和理论值仿真

仿真内容:中断概率(Outage Probability)

Instantaneous_fun1.m

中间节点数分别为2、4、6时,调用fun1函数

Instantaneous_fun2.m

中间节点数分别为2、4、6时,调用fun2函数

Instantaneous_fun3.m

中间节点数分别为2、4、6时,调用fun3函数

SRT_ORMJS.m

方案:最优中继选择,其他的中间节点作为友好干扰辅助

窃听概率和中断概率的性能折衷(Security-Reliability Tradeoff)

SRT_ORSJS.m

方案:最优中继选择,其他的中间节点里面选择一个作为友好干扰辅助

窃听概率和中断概率的性能折衷(Security-Reliability Tradeoff)

致谢:毕设导师和研究生学姐

monte-carlo's People

Contributors

tylersean avatar

Stargazers

 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.