Simulate data from simple model.

sim_simple(
  node_long,
  node_lat,
  barrier_list = list(),
  barrier_penalty = numeric(),
  barrier_method = 1,
  eccentricity = 0.9,
  n_ell = 20,
  dist_transform = 1,
  lambda = 0.1,
  eps = 0.1
)

Arguments

node_long

longitudes of nodes.

node_lat

latitudes of nodes.

barrier_list

list of polygons representing barriers. Each element of the list must be a dataframe with columns long and lat specifying the coordinates of points that make up the polygon. Polygons must be complete rings, meaning the final row of the dataframe must equal the first row.

barrier_penalty

penalty values of each barrier.

barrier_method

the method by which penalties are applied:

  • bullet 1 compare line, apply penalty on intersection

  • bullet 2 compare line, apply penalty per unit intersection

  • bullet 3 compare ellipse, apply penalty per unit area intersection

eccentricity

eccentricity of ellipses (only used under barrier_method = 3).

n_ell

number of points that make up an ellipse (only used under barrier_method = 3).

dist_transform

the method by which distances are transformed to produce the final statistic:

  • bullet 1 linear

  • bullet 2 exponential decay

lambda

the rate of decay of the exponential function (only used under dist_transform = 2).

eps

the standard deviation of white noise applied to final statistics.