Skip to contents

Generates pseudo-sites between observed sites by interpolating local abundance structure and optional environment along linear_pos.

Usage

simulate_between_observed(
  res,
  n_new_sites = 20,
  distance_power = 2,
  direction_bias = 0
)

Arguments

res

A spesim_result (typically from spesim_from_observed()).

n_new_sites

Integer number of pseudo-sites to generate.

distance_power

IDW power for weighting neighbouring observed sites.

direction_bias

Numeric in \([-1,1]\); positive favors downstream/higher linear_pos, negative favors upstream/lower linear_pos.

Value

A list with site_coords, abund_matrix, and site_env for the new pseudo-sites.