Skip to content

Commit cdd7e92

Browse files
committed
docs: simplify sample_forestfire() example to avoid dealing with log of 0
1 parent d873212 commit cdd7e92

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

R/games.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,11 +2178,8 @@ sample_fitness_pl <- static_power_law_game_impl
21782178
#' @export
21792179
#' @examples
21802180
#'
2181-
#' g <- sample_forestfire(10000, fw.prob = 0.37, bw.factor = 0.32 / 0.37)
2182-
#' dd1 <- degree_distribution(g, mode = "in")
2183-
#' dd2 <- degree_distribution(g, mode = "out")
2184-
#' plot(seq(along.with = dd1) - 1, dd1, log = "xy")
2185-
#' points(seq(along.with = dd2) - 1, dd2, col = 2, pch = 2)
2181+
#' fire <- sample_forestfire(50, fw.prob = 0.37, bw.factor = 0.32 / 0.37)
2182+
#' plot(fire)
21862183
sample_forestfire <- forest_fire_game_impl
21872184

21882185

man/sample_forestfire.Rd

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)