dist.city.block: Calculate city block distance between two matrices

dist.city.blockR Documentation

Calculate city block distance between two matrices

Description

Calculates the city block distance between two matrices.

Usage

dist.city.block(x, y)

Arguments

x

first matrix

y

second matrix

Value

cbdist city block distance between x and y

Examples

  x <- matrix(0, nrow = 5, ncol = 7)
  y <- matrix(1, nrow = 5, ncol = 7)
  dist.city.block(x, y)

  y <- matrix(c(rep(0, 15), rep(1, 20)), nrow = 5, ncol = 7)
  dist.city.block(x, y)

tempR documentation built on Sept. 8, 2023, 5:19 p.m.

Related to dist.city.block in tempR...