diff --git a/examples/axon/act.go b/examples/axon/act.go index 494e3b4..2314507 100644 --- a/examples/axon/act.go +++ b/examples/axon/act.go @@ -29,7 +29,7 @@ type SpikeParams struct { // threshold value Theta (Q) for firing output activation (.5 is more accurate value based on AdEx biological parameters and normalization Thr float32 `default:"0.5"` - // post-spiking membrane potential to reset to, produces refractory effect if lower than VmInit -- 0.3 is apropriate biologically-based value for AdEx (Brette & Gurstner, 2005) parameters. See also RTau + // post-spiking membrane potential to reset to, produces refractory effect if lower than VmInit -- 0.3 is appropriate biologically based value for AdEx (Brette & Gurstner, 2005) parameters. See also RTau VmR float32 `default:"0.3"` // post-spiking explicit refractory period, in cycles -- prevents Vm updating for this number of cycles post firing -- Vm is reduced in exponential steps over this period according to RTau, being fixed at Tr to VmR exactly @@ -323,7 +323,7 @@ func (dp *DtParams) AvgVarUpdate(avg, vr *float32, val float32) { del := val - *avg incr := dp.LongAvgDt * del *avg += incr - // following is magic exponentially-weighted incremental variance formula + // following is magic exponentially weighted incremental variance formula // derived by Finch, 2009: Incremental calculation of weighted mean and variance if *vr == 0 { *vr = 2 * (1 - dp.LongAvgDt) * del * incr diff --git a/slrand/slrand.go b/slrand/slrand.go index d7dca2c..8f966eb 100644 --- a/slrand/slrand.go +++ b/slrand/slrand.go @@ -133,7 +133,7 @@ func CounterAdd(counter *sltype.Uint2, inc uint32) { // with more readable names, mapping onto the Go rand methods. // These are what should be called by end-user code. -// Uint2 returns two uniformly-distributed 32 unsigned integers, +// Uint2 returns two uniformly distributed 32 unsigned integers, // based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -145,7 +145,7 @@ func Uint2(counter *sltype.Uint2, key uint32) sltype.Uint2 { return res } -// Uint32 returns a uniformly-distributed 32 unsigned integer, +// Uint32 returns a uniformly distributed 32 unsigned integer, // based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -157,7 +157,7 @@ func Uint32(counter *sltype.Uint2, key uint32) uint32 { return res.X } -// Float2 returns two uniformly-distributed 32 floats +// Float2 returns two uniformly distributed 32 floats // in range (0,1) based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -167,7 +167,7 @@ func Float2(counter *sltype.Uint2, key uint32) sltype.Float2 { return Uint2ToFloat(Uint2(counter, key)) } -// Float returns a uniformly-distributed 32 float +// Float returns a uniformly distributed 32 float // in range (0,1) based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -177,7 +177,7 @@ func Float(counter *sltype.Uint2, key uint32) float32 { return Uint32ToFloat(Uint32(counter, key)) } -// Float112 returns two uniformly-distributed 32 floats +// Float112 returns two uniformly distributed 32 floats // in range [-1,1] based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -187,7 +187,7 @@ func Float112(counter *sltype.Uint2, key uint32) sltype.Float2 { return Uint2ToFloat11(Uint2(counter, key)) } -// Float11 returns a uniformly-distributed 32 float +// Float11 returns a uniformly distributed 32 float // in range [-1,1] based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce diff --git a/slrand/slrand.hlsl b/slrand/slrand.hlsl index d8fe178..d5e6b9f 100644 --- a/slrand/slrand.hlsl +++ b/slrand/slrand.hlsl @@ -154,7 +154,7 @@ void CounterAdd(inout uint2 counter, uint inc) { // with more readable names, mapping onto the Go rand methods. // These are what should be called by end-user code. -// RandUint2 returns two uniformly-distributed 32 unsigned integers, +// RandUint2 returns two uniformly distributed 32 unsigned integers, // based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -166,7 +166,7 @@ uint2 RandUint2(inout uint2 counter, uint key) { return res; } -// RandUint returns a uniformly-distributed 32 unsigned integer, +// RandUint returns a uniformly distributed 32 unsigned integer, // based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -178,7 +178,7 @@ uint RandUint(inout uint2 counter, uint key) { return res.x; } -// RandFloat2 returns two uniformly-distributed 32 floats +// RandFloat2 returns two uniformly distributed 32 floats // in range (0,1) based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -188,7 +188,7 @@ float2 RandFloat2(inout uint2 counter, uint key) { return Uint2ToFloat(RandUint2(counter, key)); } -// RandFloat returns a uniformly-distributed 32 float +// RandFloat returns a uniformly distributed 32 float // in range (0,1) based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -198,7 +198,7 @@ float RandFloat(inout uint2 counter, uint key) { return UintToFloat(RandUint(counter, key)); } -// RandFloat112 returns two uniformly-distributed 32 floats +// RandFloat112 returns two uniformly distributed 32 floats // in range [-1,1] based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce @@ -208,7 +208,7 @@ float2 RandFloat112(inout uint2 counter, uint key) { return Uint2ToFloat11(RandUint2(counter, key)); } -// RandFloat11 returns a uniformly-distributed 32 float +// RandFloat11 returns a uniformly distributed 32 float // in range [-1..1] based on given counter and key. // The counter is incremented by 1 (in a 64-bit equivalent manner) // as a result of this call, ensuring that the next call will produce