Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for RNG #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NregNsyn.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ printf("irregular & asynchronous input. frequency = %d \n", freq)

objref r
r = new Random()
r.Random123()


for i=0, totSyn-1 { //totSyn is the total # of synapses
Expand Down
1 change: 1 addition & 0 deletions createNewSyn.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ for (i=0; i <= totSyn-1; i +=1) {
dend[comp].sec {
dist = distance(tmp)
Ens[i] = new NetStim(0.5)
Ens[i].noiseFromRandom123(i, 1, 0)
Ens[i].interval=200
Ens[i].number = 1000000000000000000000000000000
Ens[i].start=0
Expand Down
1 change: 1 addition & 0 deletions createNewSyn2.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ totSyn = 1000

objref Ens
Ens = new NetStim(0.5)
Ens.noiseFromRandom123(0, 2, 0)
Ens.interval=200
Ens.number = 1000000000000000000000000000000
Ens.start=0
Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ will open the simulation window.

Questions on how to use this model
should be directed to [email protected]

Updates

20240226 Use noiseFromRandom123 for result identity between 8.2 and 9.0
2024-11: Updated hoc files to use Random123
1 change: 1 addition & 0 deletions regNsyn.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ printf("regular & asynchronous input. frequency = %d \n", freq)

objref r
r = new Random()
r.Random123()

for i=0, totSyn-1 { //totSyn is the total # of synapses
Ens[i].start=0 //Ens: the reference to the NetStim
Expand Down