search for: timesteplength

Displaying 2 results from an estimated 2 matches for "timesteplength".

2008 Dec 15
1
Semi-random movement inside a circle
...uliane days=10 circularspace=data.frame(day=c(0:days),xcoord=1,ycoord=1,xvelocity=1,yvelocity=1,xdistwall=0, ydistwall=0, wallxvel=0, wallyvel=0,stochasticxvel=0,stochasticyvel=0) xmax=10 xmin=-10 ymax=10 ymin=-10 mindist=8 plot(xmin:xmax, ymin:ymax, type = "n") circularspace radius=10 timesteplength=1 weightfactor=1 for(i in 1:days) { #This is the stochastic component of the movement circularspace$stochasticxvel[day=i+1]=runif(1,min=-1,max=1) circularspace$stochasticyvel[day=i+1]=runif(1,min=-1,max=1) #This is calculating the movment speed circularspace$xvelocity[day=i+1]=weightfactor*(circul...
2008 Dec 15
1
Movement within a circle
...uliane ? days=10 circularspace=data.frame(day=c(0:days),xcoord=1,ycoord=1,xvelocity=1,yvelocity=1,xdistwall=0, ydistwall=0, wallxvel=0, wallyvel=0,stochasticxvel=0,stochasticyvel=0) xmax=10 xmin=-10 ymax=10 ymin=-10 mindist=8 plot(xmin:xmax, ymin:ymax, type = "n") circularspace radius=10 timesteplength=1 weightfactor=1 for(i in 1:days) { #This is the stochastic component of the movement circularspace$stochasticxvel[day=i+1]=runif(1,min=-1,max=1) circularspace$stochasticyvel[day=i+1]=runif(1,min=-1,max=1) #This is calculating the movment speed circularspace$xvelocity[day=i+1]=weightfactor*(circul...