rThomas_rcpp {mobsim}R Documentation

Thomas process individual distribution simulation for one species

Description

Usually used internally inside sim_thomas_coords This function randomly draws points (individuals) around one or several mother points using Rcpp. The function is an efficient re-implementation of the rThomas function from the spatstat package.

Arguments

n_points

The total number of points (individuals).

n_mother_points

Number of mother points (= cluster centres).

xmother

Vector of n_mother_points x coordinates for the mother points.

ymother

Vector of n_mother_points y coordinates for the mother points.

sigma

Mean displacement (along each coordinate axes) of a point from its mother point (= cluster centre).

xmin

Left limit, default=0.

xmax

Right limit, default=1.

ymin

Bottom limit, default=0.

ymax

Top limit, default=1.

Value

A dataframe with x and y coordinates.

Author(s)

Felix May, Alban Sagouis


[Package mobsim version 0.3.1 Index]