代码之家  ›  专栏  ›  技术社区  ›  delaye

使用NLMR包修复R中的种子

  •  1
  • delaye  · 技术社区  · 7 年前

    NLMR 包装

    # simulate polygonal landscapes
    mosaicgibbs <- NLMR::nlm_mosaicgibbs(ncol = 100,
                                   nrow = 100,
                                   germs = 20,
                                   R = 2,
                                   patch_classes = 3)
    # visualize the NLM
    rasterVis::levelplot(mosaicgibbs, margin = FALSE, par.settings = rasterVis::viridisTheme()) 
    

    我试过了 set.seed(123) 但没用。 E。

    1 回复  |  直到 7 年前
        1
  •  0
  •   Lotte Victor    7 年前

    我不确定这是否对你有帮助,但我不能只是发表评论。在 nlm_gaussianfield()

    nlm_gaussianfield(nrow=10,ncol=10,user_seed=123)

    默认值是 NULL nlm_mosaicgibbs() 也。祝你好运!