Learn R Programming

spNetwork (version 0.4.4.6)

k_nt_func_cpp: c++ k space-time function

Description

c++ k space-time function

c++ k and g space-time function

c++ k space-time function

Usage

k_nt_func_cpp(
  dist_mat_net,
  dist_mat_time,
  start_net,
  end_net,
  step_net,
  start_time,
  end_time,
  step_time,
  Lt,
  Tt,
  n,
  w
)

k_g_nt_func_cpp2( dist_mat_net, dist_mat_time, start_net, end_net, step_net, start_time, end_time, step_time, width_net, width_time, Lt, Tt, n, wc, wr, cross = FALSE )

k_nt_func_cpp2( dist_mat_net, dist_mat_time, start_net, end_net, step_net, start_time, end_time, step_time, Lt, Tt, n, wc, wr, cross = FALSE )

Arguments

dist_mat_net

A square matrix with the distances between points (network)

dist_mat_time

A square matrix with the distances between points (time)

start_net

A float, the start value for evaluating the k-function (network)

end_net

A float, the last value for evaluating the k-function (network)

step_net

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

start_time

A float, the start value for evaluating the k-function (time)

end_time

A float, the last value for evaluating the k-function (time)

step_time

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

Lt

The total length of the network

Tt

The total duration of study area

n

The number of points

w

The weight of the points (coincident points)

width_net

A float indicating the width of the donught of the g-function (network)

width_time

A float indicating the width of the donught of the g-function (time)

cross

a boolean indicating of we are calculating a cross k or g function