Skip to content
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
20 changes: 19 additions & 1 deletion DG500_M7.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -998,26 +998,33 @@ ropen("/proc/uptime") // get a seed that is changing based on the processing t
}
//************************************ GC ***********************************************
rdgc2bc = new Random(rseed) // use for syn.connections
rdgc2bc.Random123()
proc new_rdgc2bc() {rdgc2bc.discunif(-1,1)} // range is based on spread of connections on either side of RING- precell loc =0
new_rdgc2bc()
rdgc2mc = new Random(rseed) // use for syn.connections
rdgc2mc.Random123()
proc new_rdgc2mc() {rdgc2mc.discunif(0,2)}
new_rdgc2mc()
rdgc2hc = new Random(rseed) // use for syn.connections
rdgc2hc.Random123()
proc new_rdgc2hc() {rdgc2hc.discunif(-2 , 2)}
new_rdgc2hc()
rdgc2gc = new Random(rseed) // use for syn.connections
rdgc2gc.Random123()
proc new_rdgc2gc() {rdgc2gc.discunif(-50, 50)}
new_rdgc2gc()

//************************************ BC ***********************************************
rdbc2gc = new Random(rseed) // use for syn.connections
rdbc2gc.Random123()
proc new_rdbc2gc() {rdbc2gc.discunif(-70, 70)} // range is based on spread of connections on either side of RING- precell loc =0
new_rdbc2gc()
rdbc2bc = new Random(rseed) // use for syn.connections
rdbc2bc.Random123()
proc new_rdbc2bc() {rdbc2bc.discunif(-1, 1)}
new_rdbc2bc()
rdbc2mc = new Random(rseed) // use for syn.connections
rdbc2mc.Random123()
proc new_rdbc2mc() {rdbc2mc.discunif(-3, 3)}
new_rdbc2mc()

Expand All @@ -1035,42 +1042,53 @@ new_rdbc2mc()
//}

rdmc2gc1 = new Random(rseed) // use for syn.connections
rdmc2gc1.Random123()
proc new_rdmc2gc1() {rdmc2gc1.discunif(25, 175)} // range is based on spread of connections on either side of RING- precell loc =0
new_rdmc2gc1()
rdmc2gc2 = new Random(rseed) // use for syn.connections
rdmc2gc2.Random123()
proc new_rdmc2gc2() {rdmc2gc2.discunif(-175, -25)}
new_rdmc2gc2()
rdmc2bc = new Random(rseed) // use for syn.connections
rdmc2bc.Random123()
proc new_rdmc2bc() {rdmc2bc.discunif(-3,3)}
new_rdmc2bc()
rdmc2mc = new Random(rseed) // use for syn.connections
rdmc2mc.Random123()
proc new_rdmc2mc() {rdmc2mc.discunif(ngcell+nbcell, ngcell+nbcell+nmcell-1)}
new_rdmc2mc()
rdmc2mc1 = new Random(rseed) // use for syn.connections
rdmc2mc1.Random123()
proc new_rdmc2mc1() {rdmc2mc1.discunif(-3, 3)}
new_rdmc2mc1()
rdmc2hc = new Random(rseed) // use for syn.connections
rdmc2hc.Random123()
proc new_rdmc2hc() {rdmc2hc.discunif(-2, 2)}
new_rdmc2hc()
//************************************* HC ********************************************

rdhc2gc = new Random(rseed) // use for syn.connections
rdhc2gc.Random123()
proc new_rdhc2gc() {rdhc2gc.discunif(-130, 130)}
new_rdhc2gc()
rdhc2bc = new Random(rseed) // use for syn.connections
rdhc2bc.Random123()
proc new_rdhc2bc() {rdhc2bc.discunif(-2, 2)}
new_rdhc2bc()
rdhc2mc = new Random(rseed) // use for syn.connections
rdhc2mc.Random123()
proc new_rdhc2mc() {rdhc2mc.discunif(-2, 2)}
new_rdhc2mc()

//**************** randomizer for the dendritic location of synapse **************************************

rdsyna = new Random(rseed) // initialize random distr.
rdsyna.Random123()
proc new_rdsyna() {rdsyna.discunif(0, 1)} // randomize among 2 dendrites
new_rdsyna()

rdsynb = new Random(rseed) // initialize random distr.
rdsynb.Random123()
proc new_rdsynb() {rdsynb.discunif(0, 3)} // randomize among 4 dendrites
new_rdsynb()

Expand Down Expand Up @@ -1614,4 +1632,4 @@ plotAP()

objectvar scene_vector_[1]
{doNotify()}
//quit()
//quit()
18 changes: 18 additions & 0 deletions RI10sp.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -1029,67 +1029,85 @@ ropen("/proc/uptime") // get a seed that is changing based on the processing t
}
//************************************GC***********************************************
rdgc2bc = new Random(rseed) // use for syn.connections
rdgc2bc.Random123()
proc new_rdgc2bc() {rdgc2bc.discunif(-1,1)}
new_rdgc2bc()
rdgc2mc = new Random(rseed) // use for syn.connections
rdgc2mc.Random123()
proc new_rdgc2mc() {rdgc2mc.discunif(0,2)}
new_rdgc2mc()
rdgc2hc = new Random(rseed) // use for syn.connections
rdgc2hc.Random123()
proc new_rdgc2hc() {rdgc2hc.discunif(-2 , 2)}
new_rdgc2hc()
rdgc2gc = new Random(rseed) // use for syn.connections
rdgc2gc.Random123()
proc new_rdgc2gc() {rdgc2gc.discunif(-50, 50)}
new_rdgc2gc()

//************************************BC***********************************************
rdbc2gc = new Random(rseed) // use for syn.connections
rdbc2gc.Random123()
proc new_rdbc2gc() {rdbc2gc.discunif(0, ngcell-1)}
new_rdbc2gc()
rdbc2bc = new Random(rseed) // use for syn.connections
rdbc2bc.Random123()
proc new_rdbc2bc() {rdbc2bc.discunif(ngcell, ngcell+nbcell-1)}
new_rdbc2bc()
rdbc2mc = new Random(rseed) // use for syn.connections
rdbc2mc.Random123()
proc new_rdbc2mc() {rdbc2mc.discunif(ngcell+nbcell, ngcell+nbcell+nmcell-1)}
new_rdbc2mc()

//*************************************MC********************************************
rdmc2gc1 = new Random(rseed) // use for syn.connections
rdmc2gc1.Random123()
proc new_rdmc2gc1() {rdmc2gc1.discunif(25, 175)}
new_rdmc2gc1()
rdmc2gc2 = new Random(rseed) // use for syn.connections
rdmc2gc2.Random123()
proc new_rdmc2gc2() {rdmc2gc2.discunif(-175, -25)}
new_rdmc2gc2()
rdmc2bc = new Random(rseed) // use for syn.connections
rdmc2bc.Random123()
proc new_rdmc2bc() {rdmc2bc.discunif(-3,3)}
new_rdmc2bc()
rdmc2mc = new Random(rseed) // use for syn.connections
rdmc2mc.Random123()
proc new_rdmc2mc() {rdmc2mc.discunif(ngcell+nbcell, ngcell+nbcell+nmcell-1)}
new_rdmc2mc()
rdmc2mc1 = new Random(rseed) // use for syn.connections
rdmc2mc1.Random123()
proc new_rdmc2mc1() {rdmc2mc1.discunif(-3, 3)}
new_rdmc2mc1()
rdmc2hc = new Random(rseed) // use for syn.connections
rdmc2hc.Random123()
proc new_rdmc2hc() {rdmc2hc.discunif(-2, 2)}
new_rdmc2hc()
//*************************************HC********************************************

rdhc2gc = new Random(rseed) // use for syn.connections
rdhc2gc.Random123()
proc new_rdhc2gc() {rdhc2gc.discunif(0, ngcell-1)}
new_rdhc2gc()
rdhc2bc = new Random(rseed) // use for syn.connections
rdhc2bc.Random123()
proc new_rdhc2bc() {rdhc2bc.discunif(ngcell, ngcell+nbcell-1)}
new_rdhc2bc()
rdhc2mc = new Random(rseed) // use for syn.connections
rdhc2mc.Random123()
proc new_rdhc2mc() {rdhc2mc.discunif(ngcell+nbcell, ngcell+nbcell+nmcell-1)}
new_rdhc2mc()

//*********************************************************************************

rdsyna = new Random(rseed) // initialize random distr.
rdsyna.Random123()
proc new_rdsyna() {rdsyna.discunif(0, 1)}
new_rdsyna()

rdsynb = new Random(rseed) // initialize random distr.
rdsynb.Random123()
proc new_rdsynb() {rdsynb.discunif(0, 3)}
new_rdsynb()

Expand Down
1 change: 1 addition & 0 deletions readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
2022-05: Updated MOD files to contain valid C++ and be compatible with
the upcoming versions 8.2 and 9.0 of NEURON.
2022-12: Fix 9.0.0 Upcoming error: new_seed used as both variable and function in file Gfluct.mod
2024-11: Updated hoc files to use Random123
</pre>

</html>
18 changes: 18 additions & 0 deletions testnet.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -1040,67 +1040,85 @@ ropen("/proc/uptime") // get a seed that is changing based on the processing t
}
//************************************GC***********************************************
rdgc2bc = new Random(rseed) // use for syn.connections
rdgc2bc.Random123()
proc new_rdgc2bc() {rdgc2bc.discunif(0,1)}
new_rdgc2bc()
rdgc2mc = new Random(rseed) // use for syn.connections
rdgc2mc.Random123()
proc new_rdgc2mc() {rdgc2mc.discunif(0,1)}
new_rdgc2mc()
rdgc2hc = new Random(rseed) // use for syn.connections
rdgc2hc.Random123()
proc new_rdgc2hc() {rdgc2hc.discunif(0 , 1)}
new_rdgc2hc()
rdgc2gc = new Random(rseed) // use for syn.connections
rdgc2gc.Random123()
proc new_rdgc2gc() {rdgc2gc.discunif(0, 1)}
new_rdgc2gc()

//************************************BC***********************************************
rdbc2gc = new Random(rseed) // use for syn.connections
rdbc2gc.Random123()
proc new_rdbc2gc() {rdbc2gc.discunif(0, 1)}
new_rdbc2gc()
rdbc2bc = new Random(rseed) // use for syn.connections
rdbc2bc.Random123()
proc new_rdbc2bc() {rdbc2bc.discunif(0, 1)}
new_rdbc2bc()
rdbc2mc = new Random(rseed) // use for syn.connections
rdbc2mc.Random123()
proc new_rdbc2mc() {rdbc2mc.discunif(0, 1)}
new_rdbc2mc()

//*************************************MC********************************************
rdmc2gc1 = new Random(rseed) // use for syn.connections
rdmc2gc1.Random123()
proc new_rdmc2gc1() {rdmc2gc1.discunif(0,1)}
new_rdmc2gc1()
rdmc2gc2 = new Random(rseed) // use for syn.connections
rdmc2gc2.Random123()
proc new_rdmc2gc2() {rdmc2gc2.discunif(0,0)}
new_rdmc2gc2()
rdmc2bc = new Random(rseed) // use for syn.connections
rdmc2bc.Random123()
proc new_rdmc2bc() {rdmc2bc.discunif(0,0)}
new_rdmc2bc()
rdmc2mc = new Random(rseed) // use for syn.connections
rdmc2mc.Random123()
proc new_rdmc2mc() {rdmc2mc.discunif(0, 1)}
new_rdmc2mc()
rdmc2mc1 = new Random(rseed) // use for syn.connections
rdmc2mc1.Random123()
proc new_rdmc2mc1() {rdmc2mc1.discunif(0, 1)}
new_rdmc2mc1()
rdmc2hc = new Random(rseed) // use for syn.connections
rdmc2hc.Random123()
proc new_rdmc2hc() {rdmc2hc.discunif(0, 1)}
new_rdmc2hc()
//*************************************HC********************************************

rdhc2gc = new Random(rseed) // use for syn.connections
rdhc2gc.Random123()
proc new_rdhc2gc() {rdhc2gc.discunif(0, 1)}
new_rdhc2gc()
rdhc2bc = new Random(rseed) // use for syn.connections
rdhc2bc.Random123()
proc new_rdhc2bc() {rdhc2bc.discunif(0, 1)}
new_rdhc2bc()
rdhc2mc = new Random(rseed) // use for syn.connections
rdhc2mc.Random123()
proc new_rdhc2mc() {rdhc2mc.discunif(0,1)}
new_rdhc2mc()

//*********************************************************************************

rdsyna = new Random(rseed) // initialize random distr.
rdsyna.Random123()
proc new_rdsyna() {rdsyna.discunif(0, 1)}
new_rdsyna()

rdsynb = new Random(rseed) // initialize random distr.
rdsynb.Random123()
proc new_rdsynb() {rdsynb.discunif(0, 1)}
new_rdsynb()

Expand Down