The local environment parameters are the weighted averages of the populations of all points within a search radius maxdist and are an essential component for calculation of the spatial segregation measures.By default, the weight of each point is calculated from a negative exponential function, which is defined as:
$$w(d) = e^{-d \times power}$$
where d is the Euclidean distance between two points.
If useExp is FALSE, a simple inverse distance function is used to calculate the weight of each point:
$$w(d) = \frac{1}{(d + error)^{power}}$$
If maxdist is not provided (default), all data points in the study area are used for the construction of each local environment. It is recommended to specify this parameter to speed up the calculation process.
If a distance measure other than the Euclidean distance is required to represent spatial proximity between the points, the users can provide an object of class dist
, which contains the distances between all pairs of the points, through an optional argument sprel. One convenient way of obtaining such information may be the use of the function dist
, which offers a variety of distance measures, such as Manhattan, Canberra, and Minkowski.
Or alternatively, one can supply an object of class nb
to use a k-nearest neighbour averaging or polygon contiguity.