spike

package
v0.0.0-...-a493a85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActParams

type ActParams struct {
	leabra.ActParams
	Spike SpikeParams `view:"inline" desc:"spiking parameters"`
}

ActParams is full set of activation params including those from base leabra and the additional Spiking-specific ones.

func (*ActParams) Defaults

func (sk *ActParams) Defaults()

func (*ActParams) SpikeActFmVm

func (sk *ActParams) SpikeActFmVm(nrn *leabra.Neuron)

SpikeActFmVm computes the discrete spiking activation from membrane potential Vm

func (*ActParams) SpikeVmFmG

func (sk *ActParams) SpikeVmFmG(nrn *leabra.Neuron)

func (*ActParams) Update

func (sk *ActParams) Update()

type SpikeParams

type SpikeParams struct {
	Exp      bool    `` /* 476-byte string literal not displayed */
	ExpSlope float32 `` /* 365-byte string literal not displayed */
	ExpThr   float32 `` /* 127-byte string literal not displayed */
	VmR      float32 `` /* 209-byte string literal not displayed */
	Tr       int     `` /* 127-byte string literal not displayed */
	MaxHz    float32 `` /* 265-byte string literal not displayed */
	RateTau  float32 `def:"5" min:"1" desc:"constant for integrating the spiking interval in estimating spiking rate"`
	RateDt   float32 `view:"-" desc:"rate = 1 / tau"`
}

SpikeParams contains spiking activation function params. Implements the AdEx adaptive exponential function

func (*SpikeParams) ActFmISI

func (sk *SpikeParams) ActFmISI(isi, timeInc, integ float32) float32

ActFmISI computes rate-code activation from estimated spiking interval

func (*SpikeParams) ActToISI

func (sk *SpikeParams) ActToISI(act, timeInc, integ float32) float32

ActToISI compute spiking interval from a given rate-coded activation, based on time increment (.001 = 1msec default), Act.Dt.Integ

func (*SpikeParams) AvgFmISI

func (sk *SpikeParams) AvgFmISI(avg *float32, isi float32)

AvgFmISI updates spiking ISI from current isi interval value

func (*SpikeParams) Defaults

func (sk *SpikeParams) Defaults()

func (*SpikeParams) Update

func (sk *SpikeParams) Update()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL