rThomas_rcpp | R Documentation |
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.
n_points |
The total number of points (individuals). |
n_mother_points |
Number of mother points (= cluster centres). |
xmother |
Vector of |
ymother |
Vector of |
sigma |
Mean displacement (along each coordinate axes) of a point from its mother point (= cluster centre). |
xmin |
Left limit, |
xmax |
Right limit, |
ymin |
Bottom limit, |
ymax |
Top limit, |
A dataframe with x and y coordinates.
Felix May, Alban Sagouis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.