sample_spatial_point: Generate a new spatial location for a given species

Description Usage Arguments

View source: R/sample_spatial_point.R

Description

Generate a new spatial location for a given species

Usage

1
2
3
4
5
6
7
8
9
sample_spatial_point(
  species_location,
  spatial_association,
  gamma,
  invading_species,
  num_candidates,
  radius,
  count_max
)

Arguments

species_location

a tibble with the locations of species samples

spatial_association

a matrix with elements encoding the strength of species associations. Strength in (0, 1) indicates attraction, = 0 indicates null relationship, in (-1, 0) indicates repulsion

gamma

the gamma diversity

invading_species

the label of species to sample (an integer between 1 to gamma)

num_candidates

the number of candidate points that the sample can


clsong/multispat documentation built on Feb. 1, 2022, 2:11 p.m.