weight_sg: Set weights to edges of sg

Description Usage Arguments Details

View source: R/set_weights.R

Description

For each edge e(i,j) between points i,j, set the weight f(||x_i-x_j||)

Usage

1
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 Dec. 15, 2017, 6:33 p.m.