Giter VIP home page Giter VIP logo

unsupervised-snm-reconstruction's People

Contributors

linzhu111 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

unsupervised-snm-reconstruction's Issues

动态脉冲精炼Dynamic Spike Refining中程序有一个位置不太理解?

您好,请问 下面这个程序当中 为什么上面刚刚求得了“te = 2 * te”后,要立马将te的值置为0呢?
十分希望能帮忙解答一下,谢谢!!!

      elif (a > b and b > c) or (a < b and b < c):
            tle = a*min(float(a-b)/(2*(a-c)),float(b-c)/(2*(a-c)))
            tre = c*min(float(a-b)/(2*(a-c)),float(b-c)/(2*(a-c)))
            tm = float(a)*(c-b)/(c-a)    
            te = min(tm-tle,b-tm-tre)    
            assert(te>=0)
            te = 2 * te

           # 【疑问】为什么上面刚刚求得了“te = 2 * te”后,要立马将te的值置为0呢?
            #te = min(tm,b-tm)
            te = 0                         
            tl = tm - te/2
            tr = b - tm - te/2
            t_beforeitv = tl
            if t <= tl:
                if self.last_change[i*self.width+j] > 0:
                    itv = self.last_change[i*self.width+j]
                else:
                    itv = a
            elif t > b - tr:
                itv = c
            else:
                if a*c - c*tl - a*tr == 0:
                    itv = a*c*te
                else:
                    itv = a*c*te/(a*c - c*tl - a*tr)

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.