Skip to content

Commit 66d40c6

Browse files
committed
Fix bad source formatting
1 parent 779f38f commit 66d40c6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

models/diversity-example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ to calc-diversity
148148
]
149149
set counter counter + 1
150150
]
151-
151+
152152
set-histogram-num-bars 20
153153
set-current-plot "pielou"
154154
histogram filter is-number? [pielou] of patches

models/linear_regression-example.nlogox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ to go
6060
;; get the results back from R
6161
let bb sr:runresult "fm$coefficient[1]"
6262
let xx sr:runresult "fm$coefficient[2]"
63-
63+
6464
let b item 1 item 0 bb
6565
let x item 1 item 0 xx
66-
66+
6767
;; make a forecast for the next day
6868
let forecast b + x * 11
6969
if forecast < 0

models/package-example.nlogox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extensions [sr]
2020
2121
to test-pcf1
2222
sr:setup
23-
23+
2424
;; creates a plot of the pair correlation function (after Stoyan)
2525
;; for the example dataset "simdat"
2626
sr:run "library(spatstat)"
@@ -46,10 +46,10 @@ end
4646
4747
to test-pcf2
4848
clear-all
49-
49+
5050
;; comment out the next line if you want new behavior each time
5151
random-seed 42415
52-
52+
5353
;;If you do comment it out
5454
;;If you may get the error
5555
;;Extension exception: object 'agppp' not found
@@ -61,7 +61,7 @@ to test-pcf2
6161
;;was executed there was an error
6262
;;which produced a message in the command center such as
6363
;;Warning from R environment: 3 points were rejected as lying outside the specified window
64-
64+
6565
sr:setup
6666
;; creates 20 turtles and distribute them over the world randomly.
6767
;; Assigns an R-point-pattern from the locations of the turtles and calculates the pair correlation function.

models/ripleysK-example.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ to go
5656
5757
;; send agent variables into an R data-frame
5858
(sr:set-agent-data-frame "agentset" turtles "who" "xcor" "ycor")
59-
59+
6060
;; create point pattern with vectors of x- and y-coordinates of turtles and the dimension of the window/world
6161
let revalstring (word "agppp <- ppp(agentset$xcor, agentset$ycor, c(" min-pxcor "," max-pxcor "), c(" min-pycor "," max-pycor ") )")
6262

0 commit comments

Comments
 (0)