コード例 #1
0
        // On each event it makes /--\____/--\________....
        public static ICell <float> SignalSpike(this IEventReader e, float attack, float plato, float decay, Action <IDisposable> connectionSink)
        {
            SpikeCell cell = new SpikeCell
            {
                attackPoint = attack,
                platoPoint  = attack + plato,
                decayPoint  = attack + plato + decay
            };

            connectionSink(UnityExecutor.instance.AddUpdatable(cell));
            connectionSink(e.Subscribe(cell.Reset));
            return(cell);
        }
コード例 #2
0
        // On each event it makes /--\____/--\________....
        public static ICell <float> SignalSpike(this IEventStream e, float attack, float plato, float decay,
                                                IConnectionSink connectionSink)
        {
            SpikeCell cell = new SpikeCell
            {
                attackPoint = attack,
                platoPoint  = attack + plato,
                decayPoint  = attack + plato + decay
            };

            connectionSink.AddConnection(UnityExecutor.Instance.AddUpdatable(cell));
            connectionSink.AddConnection(e.Subscribe(cell.Reset));
            return(cell);
        }