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

Description Usage Arguments Value Examples

View source: R/tcata.R

Description

Calculates the city block distance between two matrices.

Usage

1

Arguments

x

first matrix

y

second matrix

Value

cbdist city block distance between x and y

Examples

1
2
3
4
5
6
  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 May 19, 2017, 12:16 p.m.

Search within the tempR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.