weight_sg {spatgraphs} | R Documentation |
Set weights to edges of sg
Description
For each edge e(i,j) between points i,j, set the weight f(||x_i-x_j||)
Usage
weight_sg(g, x, f = function(x) exp(-x^2/scale), scale = 1, ...)
Arguments
g |
sg object |
x |
point pattern used in g |
f |
function for the weight |
scale |
additional scale parameter for the default f |
... |
ignored |
Details
Default f(x) = exp(-x^2/scale)
[Package spatgraphs version 3.4 Index]