Giter Club home page Giter Club logo

Comments (3)

Silmathoron avatar Silmathoron commented on June 16, 2024

I'm totally in favor of this!
This would allow us to handle refractoriness properly depending on the precision the user wants and thus we can make sure that it is handled properly.

from nestml.

clinssen avatar clinssen commented on June 16, 2024

I would in principle be against introducing special functions, such as set_refractory() and is_refractory(), unless it confers a specific advantage. The current method uses resolution() to generate an integer number of counts to represent the refractory period; I was wondering earlier why not just use a solution that represents time as a floating point:

parameters:
    t_refractory ms = 5 ms
end

initial_values:
    t_sp ms = -1
end

update:
    if V_m > V_th:
        emit_spike()
        t_sp = t
    end
    if t_sp < 0 or t - t_sp > t_refractory:
        integrate_odes()
    end
end

The precision is dependent on the simulation resolution in any of these scenarios.

from nestml.

Silmathoron avatar Silmathoron commented on June 16, 2024

I guess time might be useful in other models so this could be an option with added value, though I must say that for the specific task of handling refractoriness I do find the former option's explicitness more appealing

from nestml.

Related Issues (20)

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.