dmat: Construct a distance matrix between one set of points and...

View source: R/RcppExports.R

dmatR Documentation

Construct a distance matrix between one set of points and another

Description

Construct a distance matrix between one set of points and another

Usage

dmat(x, dsPixel, nx, value)

Arguments

x

Set of pixels to which to compute distance

nx

The total number of pixels in the network

value

The value to be added (e.g., length) when computing distance

diPixel

A vector of downstream pixels, diPixel[i] is downstream from pixel i

Value

A matrix with dimensions 'length(x)' by 'nrow(ws)'


mtalluto/WatershedTools documentation built on May 21, 2022, 7:49 p.m.