object with objref in mod file

The basics of how to develop, test, and use models.
Post Reply
okanerkaymaz

object with objref in mod file

Post by okanerkaymaz »

i have writen a mod file that was stochastic ion channel
i have a error but i don't know this wrong
where do i do wrong ?

FUNCTION gaus(){
local objref geu error line
l=0
s=1
geu = new Random() // i want to use random() object
geu.uniform(0, 1)

z=s*sqrt(2*log(1/(1-geu)))
feu=geu.repick()
gaus=l+z*sin(2*PI*feu)
}
Bill Connelly
Posts: 86
Joined: Thu May 22, 2008 11:54 pm
Location: Australian National University

Re: object with objref in mod file

Post by Bill Connelly »

I know this post is 3 years old, but in case anyone finds this by searching, try localobj instead of local objref.
Post Reply