weight_sg: Set weights to edges of sg

View source: R/set_weights.R

weight_sgR 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)


antiphon/spatgraphs documentation built on Feb. 23, 2023, 7:14 a.m.