kgfunc_cpp2: c++ k and g function

View source: R/RcppExports.R

kgfunc_cpp2R Documentation

c++ k and g function

Description

c++ g function (INTERNAL)

Usage

kgfunc_cpp2(dist_mat, start, end, step, width, Lt, n, wc, wr, cross = FALSE)

Arguments

dist_mat

A square matrix with the distances between points

start

A float, the start value for evaluating the g-function

end

A float, the last value for evaluating the g-function

step

A float, the jump between two evaluations of the k-function

width

The width of each donut

Lt

The total length of the network

n

The number of points

wc

The weight of the points represented by the columns (destinations)

wr

The weight of the points represented by the rows (origins)

cross

A boolean indicating if we are calculating a cross k function or not (default is FALSE)

Value

A numeric matrix with the values of the k (first col) and g (second col) function evaluated at the required distances


JeremyGelb/spNetwork documentation built on Jan. 18, 2025, 3:44 p.m.