Coder Social home page Coder Social logo

freespace's Introduction

Free Space

Implements signal proragation in free space. Inspiered by Matlab's phased.FreeSpace and tested to have the same results. Accounts in calculations:

  • time delay
  • doppler effect
  • signal loss

Assumptions

  • Propagation speed > origin velocity
  • Propagation speed > destination velocity
  • Initial distance >> relative velocity * broadcast time

Test suite

generateTests.m - код на матлабе для генерации тестов

generateTests.py - generates a set of tests with different parameters (random or predefined), saves it in .mat file (and maybe .pickle file for Python) Outputs: * operating_frequency * sample_rate * two_way_propagation * signal * origin_pos * dest_pos * origin_vel * dest_vel

testMatlab.py - runs existing tests (reads form .mat files) in Matlab by Matlab API for Python and saves results (to .mat or .picle). Internally runs matlab function. Outputs: * y

testFreeSpace.py - runs existing tests in FreeSpace and saves results (or compares with Matlab's?)

compareTests.py - checks if Matlab's and Python's results are equal

Enviroment

Project uses Python 3.5.4 (it pointed in .python-version file) Python requirements for using this code listed in requirements.txt, also development requirements listed in dev-requirements.txt

Matlab version is R2016b (9.1), 64-bit(glnxa64)

Code style

We use Google Python Style Guide except line length set to 120.

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.