Code Monkey home page Code Monkey logo

madtoinou / bio-210_nnsim Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.05 MB

This repository allows you to simulate a network of neurons, which can be excitatory or inhibitatory, thank to two classes: network and neuron. Neurons have the ability to spike each other, the spike reaching the post-synaptic neuron after a constant delay (here 1.5ms, can be changed in the file constants.hpp). This simulation use the paper of M.Brunel (N J. Comp Neuroscience 2000) as reference. Autor of the code: Antoine Madrona

C++ 93.55% CMake 5.33% Python 1.11%

bio-210_nnsim's Introduction

neuron

This repository allows you to simulate a network of neurons, which can be excitatory or inhibitatory, thank to two classes: network and neuron. Neurons have the ability to spike each other, the spike reaching the post-synaptic neuron after a constant delay (here 1.5ms, can be changed in the file constants.hpp.

Files needed: CMakeLists.txt : manage the compilation of the simulation, gtest and doxygen documentation Doxyconfig: config file for doxygen generation constants.hpp : constants of the simualtion (encapsulation purpose) network. cpp & network.hpp : class network neuron.cpp & neuron.hpp : class neuron test_fun1.cpp : body of the simulation neuron_unittest.cpp : body of the gtest ploting.py : python script to plot a scatter plot and a histogramm with the output of the simulation

Brief: The default simulation will run for 100ms, with a total of 12 500 neurons (10 000 excitatory neurons, 2 500 inhibitatory neurons) randomly connected.

Simulation: You can use the follow commands in your terminal to execute the simulation and obtain the two graphics: cd neuron (go in the neuron depository, obtained from github) mkdir build mv ploting.py build cd build cmake .. make doc make ./neuron python ploting.py

If you're not running these commands directly, please notice that: IMPORTANT: You have to creat a build folder and execute the cmake and make commands from it IMPORTANT: You have to put the ploting.py file in the build in order to use the code as it is, else, change the path to your .dat file (output of the simulation) in the python script.

Gtest: You can find all the gtest in the file neuron_unittest.cpp. You can run the gtest after the command "make" with the command "./neuron_unittest"

This simulation use the paper of M.Brunel (N J. Comp Neuroscience 2000) as reference. Autor of the code: Antoine Madrona

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.