Skip to content

Commit

Permalink
fix ly hyphen grammar mistake and other spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Apr 27, 2024
1 parent fcf346c commit 3517642
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions examples/axon/act.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions slrand/slrand.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions slrand/slrand.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3517642

Please sign in to comment.