View source: R/point_patterns_simulated_communities.R
Function that generates n points in a 2D space with a bivariate normal PDF, given the variance, and xy coordinates of the centre of the PDF.
1 | rpoint.MVN(n, var, x.centr, y.centr)
|
n |
number of points |
var |
Variance of the PDF, which is the same in x and y direction. Note: covariance is 0. |
x.centr |
x coordinate of the mean in the 2D space |
y.centr |
y coordinate of the mean in the 2D space |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.